mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #469 from tigrang/helper-test-patch
Helper test fails because of hard-coded base url
This commit is contained in:
commit
59ff5146be
1 changed files with 2 additions and 2 deletions
|
@ -605,13 +605,13 @@ class HelperTest extends CakeTestCase {
|
||||||
),
|
),
|
||||||
array('fullBase' => true)
|
array('fullBase' => true)
|
||||||
);
|
);
|
||||||
$this->assertEquals('http://localhost/js/post.js', $result);
|
$this->assertEquals(FULL_BASE_URL . '/js/post.js', $result);
|
||||||
|
|
||||||
$result = $this->Helper->assetUrl('foo.jpg', array('pathPrefix' => 'img/'));
|
$result = $this->Helper->assetUrl('foo.jpg', array('pathPrefix' => 'img/'));
|
||||||
$this->assertEquals('img/foo.jpg', $result);
|
$this->assertEquals('img/foo.jpg', $result);
|
||||||
|
|
||||||
$result = $this->Helper->assetUrl('foo.jpg', array('fullBase' => true));
|
$result = $this->Helper->assetUrl('foo.jpg', array('fullBase' => true));
|
||||||
$this->assertEquals('http://localhost/foo.jpg', $result);
|
$this->assertEquals(FULL_BASE_URL . '/foo.jpg', $result);
|
||||||
|
|
||||||
Configure::write('Asset.timestamp', 'force');
|
Configure::write('Asset.timestamp', 'force');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue