Used aliases for fixture directory definitions
This commit is contained in:
parent
459ac478a2
commit
58842e3a24
@ -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__)));
|
||||
|
@ -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'
|
||||
],
|
||||
],
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user