Skip to content

Commit

Permalink
Merge pull request #26991 from imanghafoori1/fix_queue_tests_
Browse files Browse the repository at this point in the history
[5.7] Make queue tests compatible with windows 10
  • Loading branch information
taylorotwell authored Jan 4, 2019
2 parents 5459ac1 + 8aeb1a2 commit 9155faa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Queue/QueueListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testMakeProcessCorrectlyFormatsCommandLine()
$options->memory = 2;
$options->timeout = 3;
$process = $listener->makeProcess('connection', 'queue', $options);
$escape = '\\' === DIRECTORY_SEPARATOR ? '"' : '\'';
$escape = '\\' === DIRECTORY_SEPARATOR ? '' : '\'';

$this->assertInstanceOf(Process::class, $process);
$this->assertEquals(__DIR__, $process->getWorkingDirectory());
Expand All @@ -60,7 +60,7 @@ public function testMakeProcessCorrectlyFormatsCommandLineWithAnEnvironmentSpeci
$options->memory = 2;
$options->timeout = 3;
$process = $listener->makeProcess('connection', 'queue', $options);
$escape = '\\' === DIRECTORY_SEPARATOR ? '"' : '\'';
$escape = '\\' === DIRECTORY_SEPARATOR ? '' : '\'';

$this->assertInstanceOf(Process::class, $process);
$this->assertEquals(__DIR__, $process->getWorkingDirectory());
Expand All @@ -76,7 +76,7 @@ public function testMakeProcessCorrectlyFormatsCommandLineWhenTheConnectionIsNot
$options->memory = 2;
$options->timeout = 3;
$process = $listener->makeProcess(null, 'queue', $options);
$escape = '\\' === DIRECTORY_SEPARATOR ? '"' : '\'';
$escape = '\\' === DIRECTORY_SEPARATOR ? '' : '\'';

$this->assertInstanceOf(Process::class, $process);
$this->assertEquals(__DIR__, $process->getWorkingDirectory());
Expand Down

0 comments on commit 9155faa

Please sign in to comment.