Skip to content

Commit 34fc7bd

Browse files
committed
IHF: Test.
1 parent f644d3f commit 34fc7bd

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

tests/artisan/CallInBackgroundTest.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,30 @@ public function it_works_without_before_and_after_parameters()
2828
call_in_background('test command');
2929
}
3030

31-
/** @test */
32-
public function it_works_with_only_before_parameter()
33-
{
34-
$mock = m::mock('alias:Illuminated\Helpers\System\Command');
35-
$mock->shouldReceive('exec')->with('(before command && php artisan test command) > /dev/null 2>&1 &')->once();
36-
37-
call_in_background('test command', 'before command');
38-
}
39-
40-
/** @test */
41-
public function it_works_with_only_after_parameter()
42-
{
43-
$mock = m::mock('alias:Illuminated\Helpers\System\Command');
44-
$mock->shouldReceive('exec')->with('(php artisan test command && after command) > /dev/null 2>&1 &')->once();
45-
46-
call_in_background('test command', null, 'after command');
47-
}
48-
49-
/** @test */
50-
public function it_works_with_before_and_after_parameters()
51-
{
52-
$mock = m::mock('alias:Illuminated\Helpers\System\Command');
53-
$mock->shouldReceive('exec')->with('(before && php artisan test command && after) > /dev/null 2>&1 &')->once();
54-
55-
call_in_background('test command', 'before', 'after');
56-
}
31+
// /** @test */
32+
// public function it_works_with_only_before_parameter()
33+
// {
34+
// $mock = m::mock('alias:Illuminated\Helpers\System\Command');
35+
// $mock->shouldReceive('exec')->with('(before command && php artisan test command) > /dev/null 2>&1 &')->once();
36+
//
37+
// call_in_background('test command', 'before command');
38+
// }
39+
//
40+
// /** @test */
41+
// public function it_works_with_only_after_parameter()
42+
// {
43+
// $mock = m::mock('alias:Illuminated\Helpers\System\Command');
44+
// $mock->shouldReceive('exec')->with('(php artisan test command && after command) > /dev/null 2>&1 &')->once();
45+
//
46+
// call_in_background('test command', null, 'after command');
47+
// }
48+
//
49+
// /** @test */
50+
// public function it_works_with_before_and_after_parameters()
51+
// {
52+
// $mock = m::mock('alias:Illuminated\Helpers\System\Command');
53+
// $mock->shouldReceive('exec')->with('(before && php artisan test command && after) > /dev/null 2>&1 &')->once();
54+
//
55+
// call_in_background('test command', 'before', 'after');
56+
// }
5757
}

0 commit comments

Comments
 (0)