wip: initial working database support

This commit is contained in:
Joel Male
2025-02-25 11:47:10 +10:00
parent 2196f58f01
commit b92dce9ca4
7 changed files with 267 additions and 53 deletions
+5
View File
@@ -20,4 +20,9 @@ public function put($key, $value)
{
$this->session[$key] = $value;
}
public function forget($key)
{
unset($this->session[$key]);
}
}
+2 -2
View File
@@ -10,11 +10,11 @@
$events->shouldReceive('dispatch');
$this->cart = new Cart(
new SessionMock(),
new SessionMock,
$events,
'cart',
'SAMPLESESSIONKEY',
require(__DIR__ . '/../Helpers/ConfigConditionsMock.php')
require (__DIR__ . '/../Helpers/ConfigConditionsMock.php')
);
});