Use config variables instead constants. Cleanup redundant constants

This commit is contained in:
Anton Andersen
2014-08-11 12:39:47 +04:00
parent 71adca60ee
commit dfffea9af3
9 changed files with 23 additions and 41 deletions

View File

@@ -1,8 +1,8 @@
<?php
// set correct script paths
$_SERVER['SCRIPT_FILENAME'] = TEST_ENTRY_FILE;
$_SERVER['SCRIPT_NAME'] = TEST_ENTRY_URL;
$_SERVER['SCRIPT_FILENAME'] = dirname(dirname(__DIR__)) . '/web/index-test.php';
$_SERVER['SCRIPT_NAME'] = \Codeception\Configuration::config()['config']['test_entry_url'];;
return yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../../config/main.php'),