Skip to content

Commit 03ad4eb

Browse files
committed
IHF: Simplified.
1 parent e7de87d commit 03ad4eb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/artisan/CallInBackgroundTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use Mockery as m;
4-
53
/**
64
* @runTestsInSeparateProcesses
75
* @preserveGlobalState disabled
@@ -11,7 +9,7 @@ class CallInBackgroundTest extends TestCase
119
/** @test */
1210
public function it_works_without_optional_before_and_after_parameters()
1311
{
14-
$mock = m::mock('alias:Illuminated\Helpers\Artisan\Command');
12+
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
1513
$mock->shouldReceive('factory')->withArgs(['test command', null, null])->once()->andReturnSelf();
1614
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
1715

@@ -21,7 +19,7 @@ public function it_works_without_optional_before_and_after_parameters()
2119
/** @test */
2220
public function it_works_with_optional_before_parameter()
2321
{
24-
$mock = m::mock('alias:Illuminated\Helpers\Artisan\Command');
22+
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
2523
$mock->shouldReceive('factory')->withArgs(['test command', 'before command', null])->once()->andReturnSelf();
2624
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
2725

@@ -31,7 +29,7 @@ public function it_works_with_optional_before_parameter()
3129
/** @test */
3230
public function it_works_with_optional_after_parameter()
3331
{
34-
$mock = m::mock('alias:Illuminated\Helpers\Artisan\Command');
32+
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
3533
$mock->shouldReceive('factory')->withArgs(['test command', null, 'after command'])->once()->andReturnSelf();
3634
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
3735

@@ -41,7 +39,7 @@ public function it_works_with_optional_after_parameter()
4139
/** @test */
4240
public function it_works_with_optional_before_and_after_parameters_together()
4341
{
44-
$mock = m::mock('alias:Illuminated\Helpers\Artisan\Command');
42+
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
4543
$mock->shouldReceive('factory')->withArgs(['test command', 'before', 'after'])->once()->andReturnSelf();
4644
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
4745

0 commit comments

Comments
 (0)