test: update existing tests to use CartDriver

This commit is contained in:
Joel Male
2026-05-27 21:09:40 +10:00
parent 9abf6a7a1b
commit 0c27ac4d9a
7 changed files with 26 additions and 28 deletions
+2 -2
View File
@@ -2,6 +2,7 @@
use Wearepixel\Cart\Cart;
use Wearepixel\Cart\CartCondition;
use Wearepixel\Cart\Drivers\SessionDriver;
use Wearepixel\Cart\Tests\Helpers\MockProduct;
use Wearepixel\Cart\Tests\Helpers\SessionMock;
@@ -10,10 +11,9 @@
$events->shouldReceive('dispatch');
$this->cart = new Cart(
new SessionMock,
new SessionDriver(new SessionMock, 'SAMPLESESSIONKEY'),
$events,
'shopping',
'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php')
);
});