@@ -14,8 +14,8 @@ class CallInBackgroundTest extends TestCase
1414 public function it_works_without_optional_before_and_after_parameters ()
1515 {
1616 $ mock = mock ('alias:Illuminated\Helpers\Artisan\Command ' );
17- $ mock ->shouldReceive ( ' factory ' )->withArgs ([ 'test command ' , null , null ])-> once ( )->andReturnSelf ();
18- $ mock ->shouldReceive ( ' runInBackground ' )->withNoArgs ()-> once ();
17+ $ mock ->expects ( )->factory ( 'test command ' , null , null )->andReturnSelf ();
18+ $ mock ->expects ( )->runInBackground ();
1919
2020 call_in_background ('test command ' );
2121 }
@@ -24,8 +24,8 @@ public function it_works_without_optional_before_and_after_parameters()
2424 public function it_works_with_optional_before_parameter ()
2525 {
2626 $ mock = mock ('alias:Illuminated\Helpers\Artisan\Command ' );
27- $ mock ->shouldReceive ( ' factory ' )->withArgs ([ 'test command ' , 'before command ' , null ])-> once ( )->andReturnSelf ();
28- $ mock ->shouldReceive ( ' runInBackground ' )->withNoArgs ()-> once ();
27+ $ mock ->expects ( )->factory ( 'test command ' , 'before command ' , null )->andReturnSelf ();
28+ $ mock ->expects ( )->runInBackground ();
2929
3030 call_in_background ('test command ' , 'before command ' );
3131 }
@@ -34,8 +34,8 @@ public function it_works_with_optional_before_parameter()
3434 public function it_works_with_optional_after_parameter ()
3535 {
3636 $ mock = mock ('alias:Illuminated\Helpers\Artisan\Command ' );
37- $ mock ->shouldReceive ( ' factory ' )->withArgs ([ 'test command ' , null , 'after command ' ])-> once ( )->andReturnSelf ();
38- $ mock ->shouldReceive ( ' runInBackground ' )->withNoArgs ()-> once ();
37+ $ mock ->expects ( )->factory ( 'test command ' , null , 'after command ' )->andReturnSelf ();
38+ $ mock ->expects ( )->runInBackground ();
3939
4040 call_in_background ('test command ' , null , 'after command ' );
4141 }
@@ -44,8 +44,8 @@ public function it_works_with_optional_after_parameter()
4444 public function it_works_with_optional_before_and_after_parameters_together ()
4545 {
4646 $ mock = mock ('alias:Illuminated\Helpers\Artisan\Command ' );
47- $ mock ->shouldReceive ( ' factory ' )->withArgs ([ 'test command ' , 'before ' , 'after ' ])-> once ( )->andReturnSelf ();
48- $ mock ->shouldReceive ( ' runInBackground ' )->withNoArgs ()-> once ();
47+ $ mock ->expects ( )->factory ( 'test command ' , 'before ' , 'after ' )->andReturnSelf ();
48+ $ mock ->expects ( )->runInBackground ();
4949
5050 call_in_background ('test command ' , 'before ' , 'after ' );
5151 }
0 commit comments