From 6b67d0ec522f626d16c2e26d7e5adfcb9a01adce Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 19 Aug 2014 20:42:40 +0400 Subject: [PATCH] =?UTF-8?q?Renamed=20YII=5FROOT=5FDIR=20=E2=86=92=20YII=5F?= =?UTF-8?q?APP=5FBASE=5FPATH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/codeception/bin/_bootstrap.php | 6 +++--- tests/codeception/bin/yii_acceptance | 2 +- tests/codeception/bin/yii_functional | 2 +- tests/codeception/bin/yii_unit | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/codeception/bin/_bootstrap.php b/tests/codeception/bin/_bootstrap.php index de57b20..e56da4e 100644 --- a/tests/codeception/bin/_bootstrap.php +++ b/tests/codeception/bin/_bootstrap.php @@ -6,7 +6,7 @@ defined('YII_ENV') or define('YII_ENV', 'test'); defined('STDIN') or define('STDIN', fopen('php://stdin', 'r')); defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w')); -defined('YII_ROOT_DIR') or define('YII_ROOT_DIR', dirname(dirname(dirname(__DIR__)))); +defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(__DIR__)))); -require(YII_ROOT_DIR . '/vendor/autoload.php'); -require(YII_ROOT_DIR . '/vendor/yiisoft/yii2/Yii.php'); +require(YII_APP_BASE_PATH . '/vendor/autoload.php'); +require(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php'); diff --git a/tests/codeception/bin/yii_acceptance b/tests/codeception/bin/yii_acceptance index f454a1c..f67a47f 100644 --- a/tests/codeception/bin/yii_acceptance +++ b/tests/codeception/bin/yii_acceptance @@ -11,7 +11,7 @@ require_once __DIR__ . '/_bootstrap.php'; $config = yii\helpers\ArrayHelper::merge( - require(YII_ROOT_DIR . '/config/console.php'), + require(YII_APP_BASE_PATH . '/config/console.php'), require(__DIR__ . '/../config/config.php'), [ 'components' => [ diff --git a/tests/codeception/bin/yii_functional b/tests/codeception/bin/yii_functional index af5563e..f6e3988 100644 --- a/tests/codeception/bin/yii_functional +++ b/tests/codeception/bin/yii_functional @@ -11,7 +11,7 @@ require_once __DIR__ . '/_bootstrap.php'; $config = yii\helpers\ArrayHelper::merge( - require(YII_ROOT_DIR . '/config/console.php'), + require(YII_APP_BASE_PATH . '/config/console.php'), require(__DIR__ . '/../config/config.php'), [ 'components' => [ diff --git a/tests/codeception/bin/yii_unit b/tests/codeception/bin/yii_unit index 92750bb..1ab8e1f 100644 --- a/tests/codeception/bin/yii_unit +++ b/tests/codeception/bin/yii_unit @@ -11,7 +11,7 @@ require_once __DIR__ . '/_bootstrap.php'; $config = yii\helpers\ArrayHelper::merge( - require(YII_ROOT_DIR . '/config/console.php'), + require(YII_APP_BASE_PATH . '/config/console.php'), require(__DIR__ . '/../config/config.php'), [ 'components' => [