CheckoutFeatureTest.php 694 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Tests\Feature\Front\Checkout;
  3. use Tests\TestCase;
  4. class CheckoutFeatureTest extends TestCase
  5. {
  6. /** @test */
  7. public function it_fails_validation_in_preparing_stripe_checkout_items()
  8. {
  9. $this
  10. ->actingAs($this->customer, 'web')
  11. ->post(route('checkout.execute', []))
  12. ->assertStatus(302)
  13. ->assertSessionHasErrors();
  14. }
  15. /** @test */
  16. public function it_fails_validation_in_preparing_payPal_checkout_items()
  17. {
  18. $this
  19. ->actingAs($this->customer, 'web')
  20. ->get(route('checkout.execute', []))
  21. ->assertStatus(302)
  22. ->assertSessionHasErrors();
  23. }
  24. }