mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update CartTest.php
This commit is contained in:
@@ -1014,20 +1014,6 @@ class CartTest extends TestCase
|
|||||||
$this->assertEquals(11.90, $cartItem->total(2));
|
$this->assertEquals(11.90, $cartItem->total(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
|
||||||
public function it_will_destroy_the_cart_when_the_user_logs_out_and_the_config_setting_was_set_to_true()
|
|
||||||
{
|
|
||||||
$this->app['config']->set('cart.destroy_on_logout', true);
|
|
||||||
|
|
||||||
$this->app->instance(SessionManager::class, Mockery::mock(SessionManager::class, function ($mock) {
|
|
||||||
$mock->shouldReceive('forget')->once()->with('cart');
|
|
||||||
}));
|
|
||||||
|
|
||||||
$user = Mockery::mock(Authenticatable::class);
|
|
||||||
|
|
||||||
\Auth::guard('web')->logout();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
public function can_change_tax_globally()
|
public function can_change_tax_globally()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user