Browse Source

added server name, for creating url rules

Mark 12 years ago
parent
commit
be3c8c5e80
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/_bootstrap.php

+ 1 - 0
tests/_bootstrap.php

@@ -18,5 +18,6 @@ require_once(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
 // set correct script paths
 // set correct script paths
 $_SERVER['SCRIPT_FILENAME'] = TEST_ENTRY_FILE;
 $_SERVER['SCRIPT_FILENAME'] = TEST_ENTRY_FILE;
 $_SERVER['SCRIPT_NAME'] = TEST_ENTRY_URL;
 $_SERVER['SCRIPT_NAME'] = TEST_ENTRY_URL;
+$_SERVER['SERVER_NAME'] = 'localhost';
 
 
 Yii::setAlias('@tests', __DIR__);
 Yii::setAlias('@tests', __DIR__);