HTTP_HOST is not available in CLI

use FULL_BASE_URL instead.
This commit is contained in:
Harold Putman 2013-06-21 16:37:39 -04:00
parent 1ff77f2363
commit 7acf162268

View file

@ -678,7 +678,7 @@ class HelperTest extends CakeTestCase {
));
$result = $this->Helper->assetUrl('img/cake.icon.png', array('fullBase' => true));
$this->assertEquals($result, 'http://' . $_SERVER['HTTP_HOST'] . '/cake_dev/app/webroot/img/cake.icon.png');
$this->assertEquals($result, FULL_BASE_URL . '/cake_dev/app/webroot/img/cake.icon.png');
}
/**