Commit 51300fc9 by Alexander Makarov

Used aliases for fixture directory definitions

parent 37864402
...@@ -19,3 +19,5 @@ require_once(YII_APP_BASE_PATH . '/common/config/aliases.php'); ...@@ -19,3 +19,5 @@ require_once(YII_APP_BASE_PATH . '/common/config/aliases.php');
defined('YII_DEBUG') or define('YII_DEBUG', true); defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test'); defined('YII_ENV') or define('YII_ENV', 'test');
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
\ No newline at end of file
...@@ -20,8 +20,8 @@ $config = yii\helpers\ArrayHelper::merge( ...@@ -20,8 +20,8 @@ $config = yii\helpers\ArrayHelper::merge(
'controllerMap' => [ 'controllerMap' => [
'fixture' => [ 'fixture' => [
'class' => 'yii\faker\FixtureController', 'class' => 'yii\faker\FixtureController',
'fixtureDataPath' => dirname(__DIR__) . 'common/fixtures', 'fixtureDataPath' => '@tests/codeception/common/fixtures',
'templatePath' => dirname(__DIR__) . 'common/templates' 'templatePath' => '@tests/codeception/common/templates',
], ],
], ],
] ]
......
...@@ -10,3 +10,5 @@ defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirn ...@@ -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/autoload.php');
require(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php'); require(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php');
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
...@@ -17,8 +17,8 @@ $config = yii\helpers\ArrayHelper::merge( ...@@ -17,8 +17,8 @@ $config = yii\helpers\ArrayHelper::merge(
'controllerMap' => [ 'controllerMap' => [
'fixture' => [ 'fixture' => [
'class' => 'yii\faker\FixtureController', 'class' => 'yii\faker\FixtureController',
'fixtureDataPath' => dirname(__DIR__) . 'fixtures', 'fixtureDataPath' => '@tests/codeception/fixtures',
'templatePath' => dirname(__DIR__) . 'templates' 'templatePath' => '@tests/codeception/templates'
], ],
], ],
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment