@@ -28,7 +28,11 @@ public function it_has_static_constructor_named_factory()
28
28
$ this ->assertInstanceOf (Command::class, $ command );
29
29
}
30
30
31
- /** @test */
31
+ /**
32
+ * @test
33
+ * @runInSeparateProcess
34
+ * @preserveGlobalState disabled
35
+ */
32
36
public function it_can_run_command_in_background ()
33
37
{
34
38
$ this ->expectsExecWith ('(php artisan test:command) > /dev/null 2>&1 & ' );
@@ -37,7 +41,11 @@ public function it_can_run_command_in_background()
37
41
$ command ->runInBackground ();
38
42
}
39
43
40
- /** @test */
44
+ /**
45
+ * @test
46
+ * @runInSeparateProcess
47
+ * @preserveGlobalState disabled
48
+ */
41
49
public function run_in_background_supports_before_subcommand ()
42
50
{
43
51
$ this ->expectsExecWith ('(before command && php artisan test:command) > /dev/null 2>&1 & ' );
@@ -46,7 +54,11 @@ public function run_in_background_supports_before_subcommand()
46
54
$ command ->runInBackground ();
47
55
}
48
56
49
- /** @test */
57
+ /**
58
+ * @test
59
+ * @runInSeparateProcess
60
+ * @preserveGlobalState disabled
61
+ */
50
62
public function run_in_background_supports_after_subcommand ()
51
63
{
52
64
$ this ->expectsExecWith ('(php artisan test:command && after command) > /dev/null 2>&1 & ' );
@@ -55,7 +67,11 @@ public function run_in_background_supports_after_subcommand()
55
67
$ command ->runInBackground ();
56
68
}
57
69
58
- /** @test */
70
+ /**
71
+ * @test
72
+ * @runInSeparateProcess
73
+ * @preserveGlobalState disabled
74
+ */
59
75
public function run_in_background_supports_before_and_after_subcommands_together ()
60
76
{
61
77
$ this ->expectsExecWith ('(before && php artisan test:command && after) > /dev/null 2>&1 & ' );
0 commit comments