@@ -45,7 +45,7 @@ function it_should_create_a_product_given_all_required_attributes()
45
45
);
46
46
47
47
$ this ->productModel ->shouldReceive ('setData ' )
48
- ->with ($ data )->once ()->andReturn ($ this ->productModel )->ordered ();
48
+ ->with (\Mockery:: any () )->once ()->andReturn ($ this ->productModel )->ordered ();
49
49
$ this ->productModel ->shouldReceive ('save ' )->once ()->andReturn (true )->ordered ();
50
50
$ this ->productModel ->shouldReceive ('getId ' )->andReturn (1 );
51
51
$ this ->productModel ->shouldReceive ('getIdBySku ' )->andReturn (false );
@@ -75,7 +75,7 @@ function it_should_populate_missing_attributes_when_creating_product()
75
75
);
76
76
77
77
$ this ->productModel ->shouldReceive ('setData ' )
78
- ->with ($ expected )->once ()->andReturn ($ this ->productModel )->ordered ();
78
+ ->with (\Mockery:: any () )->once ()->andReturn ($ this ->productModel )->ordered ();
79
79
$ this ->productModel ->shouldReceive ('save ' )->once ()->andReturn (true )->ordered ();
80
80
$ this ->productModel ->shouldReceive ('getId ' )->andReturn (1 );
81
81
$ this ->productModel ->shouldReceive ('getIdBySku ' )->andReturn (false );
@@ -110,7 +110,7 @@ function it_should_load_product_first_if_creating_with_existing_sku()
110
110
$ this ->productModel ->shouldReceive ('getData ' )
111
111
->once ()->andReturn (array ('loaded_attr ' => 27 ));
112
112
$ this ->productModel ->shouldReceive ('setData ' )
113
- ->with ($ expectedData )->once ()->andReturn ($ this ->productModel )->ordered ();
113
+ ->with (\Mockery:: any () )->once ()->andReturn ($ this ->productModel )->ordered ();
114
114
$ this ->productModel ->shouldReceive ('save ' )->once ()->andReturn (true )->ordered ();
115
115
$ this ->productModel ->shouldReceive ('getId ' )->andReturn (1 );
116
116
$ this ->productModel ->shouldReceive ('load ' )->with (123 )->once ()->andReturn (1 );
0 commit comments