From 07899938b50ef50584b34fe4c12f061d6974570e Mon Sep 17 00:00:00 2001 From: Tigran Gabrielyan Date: Tue, 7 Feb 2012 20:26:16 -0800 Subject: [PATCH] Changed hard-coded full base url to use FULL_BASE_URL constant --- lib/Cake/Test/Case/View/HelperTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/View/HelperTest.php b/lib/Cake/Test/Case/View/HelperTest.php index 372db553c..761dd5a9b 100644 --- a/lib/Cake/Test/Case/View/HelperTest.php +++ b/lib/Cake/Test/Case/View/HelperTest.php @@ -605,13 +605,13 @@ class HelperTest extends CakeTestCase { ), 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');