Used aliases for fixture directory definitions

This commit is contained in:
Alexander Makarov 2014-08-26 01:51:41 +04:00
parent 459ac478a2
commit 58842e3a24
2 changed files with 4 additions and 2 deletions

View File

@ -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__)));

View File

@ -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'
],
],
]