mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Updating test case to fix issues when running in group context.
This commit is contained in:
parent
99095daf5c
commit
0d6f6232e6
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue