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