mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-19 22:05:18 +00:00
Fixed tests
This commit is contained in:
17
tests/SessionMock.php
Normal file
17
tests/SessionMock.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class SessionMock {
|
||||
protected $session;
|
||||
public function has($key)
|
||||
{
|
||||
return isset($this->session[$key]);
|
||||
}
|
||||
public function get($key)
|
||||
{
|
||||
return $this->session[$key];
|
||||
}
|
||||
public function put($key, $value)
|
||||
{
|
||||
$this->session[$key] = $value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user