mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Исправлена совместимость с codeception/specify 1.0.0
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
use Codeception\Configuration;
|
||||
use Codeception\Specify\Config;
|
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
@@ -21,5 +20,4 @@ $_SERVER['SCRIPT_NAME'] = API_ENTRY_URL;
|
||||
$_SERVER['SERVER_NAME'] = parse_url(Configuration::config()['config']['test_entry_url'], PHP_URL_HOST);
|
||||
$_SERVER['SERVER_PORT'] = parse_url(Configuration::config()['config']['test_entry_url'], PHP_URL_PORT) ?: '80';
|
||||
|
||||
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
|
||||
Config::setDeepClone(false);
|
||||
Yii::setAlias('@tests', dirname(__DIR__, 2));
|
||||
|
@@ -10,5 +10,4 @@ require_once __DIR__ . '/../../../common/config/bootstrap.php';
|
||||
$_SERVER['SERVER_NAME'] = 'localhost';
|
||||
$_SERVER['SERVER_PORT'] = '80';
|
||||
|
||||
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
|
||||
\Codeception\Specify\Config::setDeepClone(false);
|
||||
Yii::setAlias('@tests', dirname(__DIR__, 2));
|
||||
|
@@ -11,5 +11,4 @@ require_once __DIR__ . '/../../../console/config/bootstrap.php';
|
||||
$_SERVER['SERVER_NAME'] = 'localhost';
|
||||
$_SERVER['SERVER_PORT'] = '80';
|
||||
|
||||
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
|
||||
\Codeception\Specify\Config::setDeepClone(false);
|
||||
Yii::setAlias('@tests', dirname(__DIR__, 2));
|
||||
|
Reference in New Issue
Block a user