diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 35a98023f8..79e1918752 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -29,7 +29,7 @@ require dirname(__DIR__) . '/config/bootstrap.php'; -if (empty($_SERVER['HTTP_HOST'])) { +if (empty($_SERVER['HTTP_HOST']) && !Configure::read('App.fullBaseUrl')) { Configure::write('App.fullBaseUrl', 'http://localhost'); }