Permalink
Browse files

Updating test case to fix issues when running in group context.

  • Loading branch information...
1 parent 99095da commit 0d6f6232e6a30aa595be2bbc40ba736996141b45 @markstory markstory committed Sep 18, 2009
Showing with 6 additions and 2 deletions.
  1. +6 −2 cake/tests/cases/libs/view/helpers/js.test.php
View
8 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 @@ function startTest() {
* @return void
*/
function endTest() {
+ Configure::write('Asset.timestamp', $this->_asset);
ClassRegistry::removeObject('view');
unset($this->Js);
}
@@ -145,9 +149,9 @@ function testMethodDispatching() {
$this->Js->methodOne();
- /* $this->Js->TestEngine =& new StdClass();
+ $this->Js->TestEngine =& new StdClass();
$this->expectError();
- $this->Js->someMethodThatSurelyDoesntExist();*/
+ $this->Js->someMethodThatSurelyDoesntExist();
}
/**

0 comments on commit 0d6f623

Please sign in to comment.