@@ -27,7 +27,7 @@ public function tearDown()
2727 public function test_event_cart_created ()
2828 {
2929 $ events = m::mock ('Illuminate\Contracts\Events\Dispatcher ' );
30- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ), true );
30+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ));
3131
3232 $ cart = new Cart (
3333 new SessionMock (),
@@ -41,9 +41,9 @@ public function test_event_cart_created()
4141 public function test_event_cart_adding ()
4242 {
4343 $ events = m::mock ('Illuminate\Events\Dispatcher ' );
44- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ), true );
45- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ), true );
46- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ), true );
44+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ));
45+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ));
46+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ));
4747
4848 $ cart = new Cart (
4949 new SessionMock (),
@@ -59,9 +59,9 @@ public function test_event_cart_adding()
5959 public function test_event_cart_adding_multiple_times ()
6060 {
6161 $ events = m::mock ('Illuminate\Events\Dispatcher ' );
62- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ), true );
63- $ events ->shouldReceive ('fire ' )->times (2 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ), true );
64- $ events ->shouldReceive ('fire ' )->times (2 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ), true );
62+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ));
63+ $ events ->shouldReceive ('fire ' )->times (2 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ));
64+ $ events ->shouldReceive ('fire ' )->times (2 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ));
6565
6666 $ cart = new Cart (
6767 new SessionMock (),
@@ -78,9 +78,9 @@ public function test_event_cart_adding_multiple_times()
7878 public function test_event_cart_adding_multiple_times_scenario_two ()
7979 {
8080 $ events = m::mock ('Illuminate\Events\Dispatcher ' );
81- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ), true );
82- $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ), true );
83- $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ), true );
81+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ));
82+ $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ));
83+ $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ));
8484
8585 $ items = array (
8686 array (
@@ -120,11 +120,11 @@ public function test_event_cart_adding_multiple_times_scenario_two()
120120 public function test_event_cart_remove_item ()
121121 {
122122 $ events = m::mock ('Illuminate\Events\Dispatcher ' );
123- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ), true );
124- $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ), true );
125- $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ), true );
126- $ events ->shouldReceive ('fire ' )->times (1 )->with (self ::CART_INSTANCE_NAME .'.removing ' , m::type ('array ' ), true );
127- $ events ->shouldReceive ('fire ' )->times (1 )->with (self ::CART_INSTANCE_NAME .'.removed ' , m::type ('array ' ), true );
123+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ));
124+ $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ));
125+ $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ));
126+ $ events ->shouldReceive ('fire ' )->times (1 )->with (self ::CART_INSTANCE_NAME .'.removing ' , m::type ('array ' ));
127+ $ events ->shouldReceive ('fire ' )->times (1 )->with (self ::CART_INSTANCE_NAME .'.removed ' , m::type ('array ' ));
128128
129129 $ items = array (
130130 array (
@@ -166,11 +166,11 @@ public function test_event_cart_remove_item()
166166 public function test_event_cart_clear ()
167167 {
168168 $ events = m::mock ('Illuminate\Events\Dispatcher ' );
169- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ), true );
170- $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ), true );
171- $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ), true );
172- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.clearing ' , m::type ('array ' ), true );
173- $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.cleared ' , m::type ('array ' ), true );
169+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.created ' , m::type ('array ' ));
170+ $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.adding ' , m::type ('array ' ));
171+ $ events ->shouldReceive ('fire ' )->times (3 )->with (self ::CART_INSTANCE_NAME .'.added ' , m::type ('array ' ));
172+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.clearing ' , m::type ('array ' ));
173+ $ events ->shouldReceive ('fire ' )->once ()->with (self ::CART_INSTANCE_NAME .'.cleared ' , m::type ('array ' ));
174174
175175 $ items = array (
176176 array (
0 commit comments