Rename FIXTURES to DEPLOYER_FIXTURES

This commit is contained in:
Anton Medvedev 2017-03-21 16:23:41 +07:00
parent 254cf2618a
commit 231b81d917
4 changed files with 6 additions and 6 deletions

View File

@ -20,6 +20,6 @@ if (!$loaded) {
define('DEPLOYER', true);
define('DEPLOYER_BIN', __DIR__ . '/../bin/dep');
define('DEPLOYER_PARALLEL_PTY', false);
define('FIXTURES', __DIR__ . '/fixture');
define('DEPLOYER_FIXTURES', __DIR__ . '/fixture');
require_once __DIR__ . '/recipe/tester.php';

View File

@ -14,7 +14,7 @@ class DeployTest extends DepCase
{
protected function load()
{
require FIXTURES . '/recipe/deploy.php';
require DEPLOYER_FIXTURES . '/recipe/deploy.php';
}
public function testDeploy()

View File

@ -13,7 +13,7 @@ class ParallelTest extends DepCase
{
protected function load()
{
require FIXTURES . '/recipe/deploy.php';
require DEPLOYER_FIXTURES . '/recipe/deploy.php';
}
public function testDeploy()
@ -21,7 +21,7 @@ class ParallelTest extends DepCase
$output = $this->start('deploy',
[
'--parallel' => true,
'--file' => FIXTURES . '/recipe/deploy.php'
'--file' => DEPLOYER_FIXTURES . '/recipe/deploy.php'
],
[
'verbosity' => OutputInterface::VERBOSITY_DEBUG

View File

@ -48,13 +48,13 @@ abstract class DepCase extends BaseTestCase
public static function setUpBeforeClass()
{
// Prepare FS
self::$deployPath = FIXTURES . '/.localhost';
self::$deployPath = DEPLOYER_FIXTURES . '/.localhost';
self::cleanUp();
mkdir(self::$deployPath);
self::$deployPath = realpath(self::$deployPath);
// Init repository
$repository = FIXTURES . '/repository';
$repository = DEPLOYER_FIXTURES . '/repository';
\exec("cd $repository && git init");
\exec("cd $repository && git add .");
\exec("cd $repository && git config user.name 'John Smith'");