mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
HTTP_HOST is not available in CLI
use FULL_BASE_URL instead.
This commit is contained in:
parent
1ff77f2363
commit
7acf162268
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue