diff --git a/cake/tests/cases/libs/view/helpers/ajax.test.php b/cake/tests/cases/libs/view/helpers/ajax.test.php index f57264e96..085f5df81 100644 --- a/cake/tests/cases/libs/view/helpers/ajax.test.php +++ b/cake/tests/cases/libs/view/helpers/ajax.test.php @@ -68,6 +68,7 @@ class PostAjaxTest extends Model { class AjaxTest extends UnitTestCase { function setUp() { + Router::reload(); $this->Ajax = new AjaxHelper(); $this->Ajax->Html = new HtmlHelper(); $this->Ajax->Form = new FormHelper(); diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index ffd7cd6d9..31d391781 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -167,6 +167,10 @@ class ValidateItem extends Model { */ class FormHelperTest extends CakeTestCase { + function setUp() { + Router::reload(); + } + function startTest($method) { $this->Form =& new FormHelper(); $this->Form->Html =& new HtmlHelper();