initial commit
This commit is contained in:
17
tests/codeception/config/frontend/acceptance.php
Normal file
17
tests/codeception/config/frontend/acceptance.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(dirname(__DIR__)))));
|
||||
|
||||
/**
|
||||
* Application configuration for frontend acceptance tests
|
||||
*/
|
||||
return yii\helpers\ArrayHelper::merge(
|
||||
require(YII_APP_BASE_PATH . '/common/config/main.php'),
|
||||
require(YII_APP_BASE_PATH . '/common/config/main-local.php'),
|
||||
require(YII_APP_BASE_PATH . '/frontend/config/main.php'),
|
||||
require(YII_APP_BASE_PATH . '/frontend/config/main-local.php'),
|
||||
require(dirname(__DIR__) . '/config.php'),
|
||||
require(dirname(__DIR__) . '/acceptance.php'),
|
||||
require(__DIR__ . '/config.php'),
|
||||
[
|
||||
]
|
||||
);
|
||||
5
tests/codeception/config/frontend/config.php
Normal file
5
tests/codeception/config/frontend/config.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
/**
|
||||
* Application configuration for all frontend test types
|
||||
*/
|
||||
return [];
|
||||
18
tests/codeception/config/frontend/functional.php
Normal file
18
tests/codeception/config/frontend/functional.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
$_SERVER['SCRIPT_FILENAME'] = FRONTEND_ENTRY_FILE;
|
||||
$_SERVER['SCRIPT_NAME'] = FRONTEND_ENTRY_URL;
|
||||
|
||||
/**
|
||||
* Application configuration for frontend functional tests
|
||||
*/
|
||||
return yii\helpers\ArrayHelper::merge(
|
||||
require(YII_APP_BASE_PATH . '/common/config/main.php'),
|
||||
require(YII_APP_BASE_PATH . '/common/config/main-local.php'),
|
||||
require(YII_APP_BASE_PATH . '/frontend/config/main.php'),
|
||||
require(YII_APP_BASE_PATH . '/frontend/config/main-local.php'),
|
||||
require(dirname(__DIR__) . '/config.php'),
|
||||
require(dirname(__DIR__) . '/functional.php'),
|
||||
require(__DIR__ . '/config.php'),
|
||||
[
|
||||
]
|
||||
);
|
||||
16
tests/codeception/config/frontend/unit.php
Normal file
16
tests/codeception/config/frontend/unit.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Application configuration for frontend unit tests
|
||||
*/
|
||||
return yii\helpers\ArrayHelper::merge(
|
||||
require(YII_APP_BASE_PATH . '/common/config/main.php'),
|
||||
require(YII_APP_BASE_PATH . '/common/config/main-local.php'),
|
||||
require(YII_APP_BASE_PATH . '/frontend/config/main.php'),
|
||||
require(YII_APP_BASE_PATH . '/frontend/config/main-local.php'),
|
||||
require(dirname(__DIR__) . '/config.php'),
|
||||
require(dirname(__DIR__) . '/unit.php'),
|
||||
require(__DIR__ . '/config.php'),
|
||||
[
|
||||
]
|
||||
);
|
||||
Reference in New Issue
Block a user