Skip to content

Commit 17d8e92

Browse files
committed
Mockery 1.0 features used.
1 parent 261b372 commit 17d8e92

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/HelperFunctions/artisan/CallInBackgroundTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Illuminated\Helpers\HelperFunctions\Tests\Artisan;
44

55
use Illuminated\Helpers\HelperFunctions\Tests\TestCase;
6-
use Mockery;
76

87
/**
98
* @runTestsInSeparateProcesses
@@ -14,7 +13,7 @@ class CallInBackgroundTest extends TestCase
1413
/** @test */
1514
public function it_works_without_optional_before_and_after_parameters()
1615
{
17-
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
16+
$mock = mock('alias:Illuminated\Helpers\Artisan\Command');
1817
$mock->shouldReceive('factory')->withArgs(['test command', null, null])->once()->andReturnSelf();
1918
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
2019

@@ -24,7 +23,7 @@ public function it_works_without_optional_before_and_after_parameters()
2423
/** @test */
2524
public function it_works_with_optional_before_parameter()
2625
{
27-
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
26+
$mock = mock('alias:Illuminated\Helpers\Artisan\Command');
2827
$mock->shouldReceive('factory')->withArgs(['test command', 'before command', null])->once()->andReturnSelf();
2928
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
3029

@@ -34,7 +33,7 @@ public function it_works_with_optional_before_parameter()
3433
/** @test */
3534
public function it_works_with_optional_after_parameter()
3635
{
37-
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
36+
$mock = mock('alias:Illuminated\Helpers\Artisan\Command');
3837
$mock->shouldReceive('factory')->withArgs(['test command', null, 'after command'])->once()->andReturnSelf();
3938
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
4039

@@ -44,7 +43,7 @@ public function it_works_with_optional_after_parameter()
4443
/** @test */
4544
public function it_works_with_optional_before_and_after_parameters_together()
4645
{
47-
$mock = Mockery::mock('alias:Illuminated\Helpers\Artisan\Command');
46+
$mock = mock('alias:Illuminated\Helpers\Artisan\Command');
4847
$mock->shouldReceive('factory')->withArgs(['test command', 'before', 'after'])->once()->andReturnSelf();
4948
$mock->shouldReceive('runInBackground')->withNoArgs()->once();
5049

0 commit comments

Comments
 (0)