mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Updated test class
This commit is contained in:
@@ -10,16 +10,15 @@ require_once 'SessionMock.php';
|
||||
|
||||
class CartTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
protected $session;
|
||||
protected $events;
|
||||
protected $cart;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$this->session = new SessionMock;
|
||||
$session= new SessionMock;
|
||||
$this->events = m::mock('Illuminate\Events\Dispatcher');
|
||||
|
||||
$this->cart = new Cart($this->session, $this->events);
|
||||
$this->cart = new Cart($session, $this->events);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
|
||||
Reference in New Issue
Block a user