Исправлена совместимость с codeception/specify 1.0.0

This commit is contained in:
ErickSkrauch 2017-11-28 14:24:28 +03:00
parent 8c8116038e
commit 4d48b38e47
4 changed files with 4 additions and 8 deletions

View File

@ -33,7 +33,7 @@
"flow/jsonpath": "^0.3.1",
"phpunit/phpunit": "^6.0",
"codeception/codeception": "dev-reset_yii2_app#6045eed00f7b163226d04fe40333f076b0f132e3",
"codeception/specify": "*",
"codeception/specify": "^1.0.0",
"codeception/verify": "*",
"mockery/mockery": "^1.0.0",
"php-mock/php-mock-mockery": "^1.2.0"

View File

@ -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));

View File

@ -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));

View File

@ -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));