mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Used aliases for fixture directory definitions
This commit is contained in:
@ -19,3 +19,5 @@ require_once(YII_APP_BASE_PATH . '/common/config/aliases.php');
|
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
|
@ -20,8 +20,8 @@ $config = yii\helpers\ArrayHelper::merge(
|
||||
'controllerMap' => [
|
||||
'fixture' => [
|
||||
'class' => 'yii\faker\FixtureController',
|
||||
'fixtureDataPath' => dirname(__DIR__) . 'common/fixtures',
|
||||
'templatePath' => dirname(__DIR__) . 'common/templates'
|
||||
'fixtureDataPath' => '@tests/codeception/common/fixtures',
|
||||
'templatePath' => '@tests/codeception/common/templates',
|
||||
],
|
||||
],
|
||||
]
|
||||
|
@ -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'
|
||||
],
|
||||
],
|
||||
]
|
||||
|
Reference in New Issue
Block a user