File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public static function phpBinary()
116
116
*/
117
117
public static function artisanBinary ()
118
118
{
119
- return defined ('ARTISAN_BINARY ' ) ? ProcessUtils:: escapeArgument ( ARTISAN_BINARY ) : 'artisan ' ;
119
+ return ProcessUtils:: escapeArgument ( defined ('ARTISAN_BINARY ' ) ? ARTISAN_BINARY : 'artisan ' ) ;
120
120
}
121
121
122
122
/**
Original file line number Diff line number Diff line change @@ -101,9 +101,10 @@ public function testCommandCreatesNewArtisanCommand()
101
101
102
102
$ events = $ schedule ->events ();
103
103
$ binary = $ escape .PHP_BINARY .$ escape ;
104
- $ this ->assertEquals ($ binary .' artisan queue:listen ' , $ events [0 ]->command );
105
- $ this ->assertEquals ($ binary .' artisan queue:listen --tries=3 ' , $ events [1 ]->command );
106
- $ this ->assertEquals ($ binary .' artisan queue:listen --tries=3 ' , $ events [2 ]->command );
104
+ $ artisan = $ escape .'artisan ' .$ escape ;
105
+ $ this ->assertEquals ($ binary .' ' .$ artisan .' queue:listen ' , $ events [0 ]->command );
106
+ $ this ->assertEquals ($ binary .' ' .$ artisan .' queue:listen --tries=3 ' , $ events [1 ]->command );
107
+ $ this ->assertEquals ($ binary .' ' .$ artisan .' queue:listen --tries=3 ' , $ events [2 ]->command );
107
108
}
108
109
109
110
public function testCreateNewArtisanCommandUsingCommandClass ()
@@ -115,7 +116,8 @@ public function testCreateNewArtisanCommandUsingCommandClass()
115
116
116
117
$ events = $ schedule ->events ();
117
118
$ binary = $ escape .PHP_BINARY .$ escape ;
118
- $ this ->assertEquals ($ binary .' artisan foo:bar --force ' , $ events [0 ]->command );
119
+ $ artisan = $ escape .'artisan ' .$ escape ;
120
+ $ this ->assertEquals ($ binary .' ' .$ artisan .' foo:bar --force ' , $ events [0 ]->command );
119
121
}
120
122
121
123
public function testCallCreatesNewJobWithTimezone ()
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function testBuildCommandInBackgroundUsingUnix()
47
47
48
48
$ scheduleId = '"framework ' .DIRECTORY_SEPARATOR .'schedule-eeb46c93d45e928d62aaf684d727e213b7094822" ' ;
49
49
50
- $ this ->assertSame ("(php -i > '/dev/null' 2>&1 ; ' " .PHP_BINARY ."' artisan schedule:finish {$ scheduleId } \"$? \") > '/dev/null' 2>&1 & " , $ event ->buildCommand ());
50
+ $ this ->assertSame ("(php -i > '/dev/null' 2>&1 ; ' " .PHP_BINARY ."' ' artisan' schedule:finish {$ scheduleId } \"$? \") > '/dev/null' 2>&1 & " , $ event ->buildCommand ());
51
51
}
52
52
53
53
public function testBuildCommandInBackgroundUsingWindows ()
@@ -61,7 +61,7 @@ public function testBuildCommandInBackgroundUsingWindows()
61
61
62
62
$ scheduleId = '"framework ' .DIRECTORY_SEPARATOR .'schedule-eeb46c93d45e928d62aaf684d727e213b7094822" ' ;
63
63
64
- $ this ->assertSame ('start /b cmd /c "(php -i & " ' .PHP_BINARY .'" artisan schedule:finish ' .$ scheduleId .' "%errorlevel%") > "NUL" 2>&1" ' , $ event ->buildCommand ());
64
+ $ this ->assertSame ('start /b cmd /c "(php -i & " ' .PHP_BINARY .'" " artisan" schedule:finish ' .$ scheduleId .' "%errorlevel%") > "NUL" 2>&1" ' , $ event ->buildCommand ());
65
65
}
66
66
67
67
public function testBuildCommandSendOutputTo ()
You can’t perform that action at this time.
0 commit comments