From 0d6f6232e6a30aa595be2bbc40ba736996141b45 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 17 Sep 2009 20:23:36 -0400 Subject: [PATCH] Updating test case to fix issues when running in group context. --- cake/tests/cases/libs/view/helpers/js.test.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/js.test.php b/cake/tests/cases/libs/view/helpers/js.test.php index ee87727bf..972e056af 100644 --- a/cake/tests/cases/libs/view/helpers/js.test.php +++ b/cake/tests/cases/libs/view/helpers/js.test.php @@ -81,6 +81,9 @@ class JsHelperTestCase extends CakeTestCase { * @return void */ function startTest() { + $this->_asset = Configure::read('Asset.timestamp'); + Configure::write('Asset.timestamp', false); + $this->Js =& new JsHelper('JsBase'); $this->Js->Html =& new HtmlHelper(); $this->Js->Form =& new FormHelper(); @@ -98,6 +101,7 @@ class JsHelperTestCase extends CakeTestCase { * @return void */ function endTest() { + Configure::write('Asset.timestamp', $this->_asset); ClassRegistry::removeObject('view'); unset($this->Js); } @@ -145,9 +149,9 @@ class JsHelperTestCase extends CakeTestCase { $this->Js->methodOne(); - /* $this->Js->TestEngine =& new StdClass(); + $this->Js->TestEngine =& new StdClass(); $this->expectError(); - $this->Js->someMethodThatSurelyDoesntExist();*/ + $this->Js->someMethodThatSurelyDoesntExist(); } /**