mirror of
https://github.com/elyby/accounts.git
synced 2024-11-27 01:02:06 +05:30
Исправлена совместимость с codeception/specify 1.0.0
This commit is contained in:
parent
8c8116038e
commit
4d48b38e47
@ -33,7 +33,7 @@
|
|||||||
"flow/jsonpath": "^0.3.1",
|
"flow/jsonpath": "^0.3.1",
|
||||||
"phpunit/phpunit": "^6.0",
|
"phpunit/phpunit": "^6.0",
|
||||||
"codeception/codeception": "dev-reset_yii2_app#6045eed00f7b163226d04fe40333f076b0f132e3",
|
"codeception/codeception": "dev-reset_yii2_app#6045eed00f7b163226d04fe40333f076b0f132e3",
|
||||||
"codeception/specify": "*",
|
"codeception/specify": "^1.0.0",
|
||||||
"codeception/verify": "*",
|
"codeception/verify": "*",
|
||||||
"mockery/mockery": "^1.0.0",
|
"mockery/mockery": "^1.0.0",
|
||||||
"php-mock/php-mock-mockery": "^1.2.0"
|
"php-mock/php-mock-mockery": "^1.2.0"
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
use Codeception\Configuration;
|
use Codeception\Configuration;
|
||||||
use Codeception\Specify\Config;
|
|
||||||
|
|
||||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
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_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';
|
$_SERVER['SERVER_PORT'] = parse_url(Configuration::config()['config']['test_entry_url'], PHP_URL_PORT) ?: '80';
|
||||||
|
|
||||||
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
|
Yii::setAlias('@tests', dirname(__DIR__, 2));
|
||||||
Config::setDeepClone(false);
|
|
||||||
|
@ -10,5 +10,4 @@ require_once __DIR__ . '/../../../common/config/bootstrap.php';
|
|||||||
$_SERVER['SERVER_NAME'] = 'localhost';
|
$_SERVER['SERVER_NAME'] = 'localhost';
|
||||||
$_SERVER['SERVER_PORT'] = '80';
|
$_SERVER['SERVER_PORT'] = '80';
|
||||||
|
|
||||||
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
|
Yii::setAlias('@tests', dirname(__DIR__, 2));
|
||||||
\Codeception\Specify\Config::setDeepClone(false);
|
|
||||||
|
@ -11,5 +11,4 @@ require_once __DIR__ . '/../../../console/config/bootstrap.php';
|
|||||||
$_SERVER['SERVER_NAME'] = 'localhost';
|
$_SERVER['SERVER_NAME'] = 'localhost';
|
||||||
$_SERVER['SERVER_PORT'] = '80';
|
$_SERVER['SERVER_PORT'] = '80';
|
||||||
|
|
||||||
Yii::setAlias('@tests', dirname(dirname(__DIR__)));
|
Yii::setAlias('@tests', dirname(__DIR__, 2));
|
||||||
\Codeception\Specify\Config::setDeepClone(false);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user