Skip to content
Permalink
Browse files

Changed hard-coded full base url to use FULL_BASE_URL constant

  • Loading branch information...
tigrang committed Feb 8, 2012
1 parent b6f99bc commit 07899938b50ef50584b34fe4c12f061d6974570e
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/View/HelperTest.php
@@ -605,13 +605,13 @@ public function testAssetUrl() {
),
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/'));
$this->assertEquals('img/foo.jpg', $result);
$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');

0 comments on commit 0789993

Please sign in to comment.
You can’t perform that action at this time.