Permalink
Browse files

HTTP_HOST is not available in CLI

use FULL_BASE_URL instead.
  • Loading branch information...
1 parent 1ff77f2 commit 7acf1622681b176847faae6f5464bf0f83b4ea6b @HaroldPutman HaroldPutman committed Jun 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/View/HelperTest.php
@@ -678,7 +678,7 @@ public function testAssetUrlNoRewrite() {
));
$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');
}
/**

0 comments on commit 7acf162

Please sign in to comment.