From ba10003ef24381e7cea8c40a3e32ff1e0f88a3e7 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 16 Nov 2010 22:52:49 -0500 Subject: [PATCH] Fixing failing tests when HtmlHelper test was run by itself. --- cake/tests/cases/libs/view/helpers/html.test.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/html.test.php b/cake/tests/cases/libs/view/helpers/html.test.php index dd4e85708..2defe93ab 100644 --- a/cake/tests/cases/libs/view/helpers/html.test.php +++ b/cake/tests/cases/libs/view/helpers/html.test.php @@ -90,6 +90,8 @@ class HtmlHelperTest extends CakeTestCase { $this->Html = new HtmlHelper($this->View); $this->Html->request = new CakeRequest(null, false); $this->Html->request->webroot = ''; + + Configure::write('Asset.timestamp', false); } /** @@ -262,7 +264,6 @@ class HtmlHelperTest extends CakeTestCase { */ function testImageTag() { $this->Html->request->webroot = ''; - Configure::write('Asset.timestamp', false); $result = $this->Html->image('test.gif'); $this->assertTags($result, array('img' => array('src' => 'img/test.gif', 'alt' => ''))); @@ -354,7 +355,6 @@ class HtmlHelperTest extends CakeTestCase { * @return void */ function testThemeAssetsInMainWebrootPath() { - Configure::write('Asset.timestamp', false); App::build(array( 'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS) )); @@ -402,7 +402,6 @@ class HtmlHelperTest extends CakeTestCase { * @return void */ function testCssLink() { - Configure::write('Asset.timestamp', false); Configure::write('Asset.filter.css', false); $result = $this->Html->css('screen'); @@ -528,7 +527,6 @@ class HtmlHelperTest extends CakeTestCase { * @return void */ function testScript() { - Configure::write('Asset.timestamp', false); $result = $this->Html->script('foo'); $expected = array( 'script' => array('type' => 'text/javascript', 'src' => 'js/foo.js')