From 58842e3a249e6e3b9c4ae75e36ef3322dfd77017 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 26 Aug 2014 01:51:41 +0400 Subject: [PATCH] Used aliases for fixture directory definitions --- tests/codeception/bin/_bootstrap.php | 2 ++ tests/codeception/bin/yii | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/codeception/bin/_bootstrap.php b/tests/codeception/bin/_bootstrap.php index e56da4e..c923193 100644 --- a/tests/codeception/bin/_bootstrap.php +++ b/tests/codeception/bin/_bootstrap.php @@ -10,3 +10,5 @@ defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirn require(YII_APP_BASE_PATH . '/vendor/autoload.php'); require(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php'); + +Yii::setAlias('@tests', dirname(dirname(__DIR__))); diff --git a/tests/codeception/bin/yii b/tests/codeception/bin/yii index 9046b48..fda028e 100644 --- a/tests/codeception/bin/yii +++ b/tests/codeception/bin/yii @@ -17,8 +17,8 @@ $config = yii\helpers\ArrayHelper::merge( 'controllerMap' => [ 'fixture' => [ 'class' => 'yii\faker\FixtureController', - 'fixtureDataPath' => dirname(__DIR__) . 'fixtures', - 'templatePath' => dirname(__DIR__) . 'templates' + 'fixtureDataPath' => '@tests/codeception/fixtures', + 'templatePath' => '@tests/codeception/templates' ], ], ]