Adding Router::reload() to setUp() in tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5344 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-06-23 08:40:52 +00:00
parent 51aa81f336
commit 9ba943ed6b
2 changed files with 5 additions and 0 deletions

View file

@ -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();

View file

@ -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();