actingAs($this->customer, 'web') ->post(route('checkout.execute', [])) ->assertStatus(302) ->assertSessionHasErrors(); } /** @test */ public function it_fails_validation_in_preparing_payPal_checkout_items() { $this ->actingAs($this->customer, 'web') ->get(route('checkout.execute', [])) ->assertStatus(302) ->assertSessionHasErrors(); } }