_bootstrap.php 581 Bytes
Newer Older
1 2
<?php

3
defined('YII_DEBUG') or define('YII_DEBUG', true);
4

5
defined('YII_ENV') or define('YII_ENV', 'test');
6 7 8 9 10 11 12 13

require_once(__DIR__ . '/../../vendor/autoload.php');

require_once(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');

require(__DIR__ . '/../../common/config/aliases.php');

// set correct script paths
14 15 16 17

// the entry script file path for functional and acceptance tests
$_SERVER['SCRIPT_FILENAME'] = dirname(__DIR__) . '/web/index-test.php';
$_SERVER['SCRIPT_NAME'] = \Codeception\Configuration::config()['config']['test_entry_url'];
18
$_SERVER['SERVER_NAME'] = 'localhost';