diff --git a/test/src/Executor/Fixture/recipe.php b/test/fixture/recipe.php similarity index 100% rename from test/src/Executor/Fixture/recipe.php rename to test/fixture/recipe.php diff --git a/test/src/Executor/ParallelExecutorTest.php b/test/src/Executor/ParallelExecutorTest.php index 89396c98..d83f7cca 100644 --- a/test/src/Executor/ParallelExecutorTest.php +++ b/test/src/Executor/ParallelExecutorTest.php @@ -11,6 +11,11 @@ use Deployer\Helper\RecipeTester; class ParallelExecutorTest extends RecipeTester { + /** + * @var string + */ + private $recipeFile; + /** * Load or describe recipe. * @@ -18,14 +23,14 @@ class ParallelExecutorTest extends RecipeTester */ protected function loadRecipe() { - include __DIR__ . '/Fixture/recipe.php'; + include $this->recipeFile = __DIR__ . '/../../fixture/recipe.php'; } public function testParallel() { define('DEPLOYER_BIN', __DIR__ . '/../../../bin/dep'); - $display = $this->exec('test', ['--parallel' => true, '--file' => __DIR__ . '/Fixture/recipe.php']); + $display = $this->exec('test', ['--parallel' => true, '--file' => $this->recipeFile]); $this->assertContains('Ok', $display); }