From e9dd234ef72644f972751608d8d13f5b2fceb7de Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 22 Aug 2014 00:59:49 +0200 Subject: [PATCH] Fix failing tests on windows. Windows uses " not ' to escape shell arguments. --- tests/TestCase/Console/Command/Task/PluginTaskTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase/Console/Command/Task/PluginTaskTest.php b/tests/TestCase/Console/Command/Task/PluginTaskTest.php index ee439e1d993..ee446065017 100644 --- a/tests/TestCase/Console/Command/Task/PluginTaskTest.php +++ b/tests/TestCase/Console/Command/Task/PluginTaskTest.php @@ -201,7 +201,7 @@ public function testExecuteUpdateComposer() { $this->Task->expects($this->at(3)) ->method('callProcess') - ->with("cd '$path'; php 'composer.phar' dump-autoload"); + ->with('cd ' . escapeshellarg($path) . '; php ' . escapeshellarg('composer.phar') . ' dump-autoload'); $this->Task->main('BakeTestPlugin');