mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
51aa81f336
commit
9ba943ed6b
2 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,7 @@ class PostAjaxTest extends Model {
|
||||||
class AjaxTest extends UnitTestCase {
|
class AjaxTest extends UnitTestCase {
|
||||||
|
|
||||||
function setUp() {
|
function setUp() {
|
||||||
|
Router::reload();
|
||||||
$this->Ajax = new AjaxHelper();
|
$this->Ajax = new AjaxHelper();
|
||||||
$this->Ajax->Html = new HtmlHelper();
|
$this->Ajax->Html = new HtmlHelper();
|
||||||
$this->Ajax->Form = new FormHelper();
|
$this->Ajax->Form = new FormHelper();
|
||||||
|
|
|
@ -167,6 +167,10 @@ class ValidateItem extends Model {
|
||||||
*/
|
*/
|
||||||
class FormHelperTest extends CakeTestCase {
|
class FormHelperTest extends CakeTestCase {
|
||||||
|
|
||||||
|
function setUp() {
|
||||||
|
Router::reload();
|
||||||
|
}
|
||||||
|
|
||||||
function startTest($method) {
|
function startTest($method) {
|
||||||
$this->Form =& new FormHelper();
|
$this->Form =& new FormHelper();
|
||||||
$this->Form->Html =& new HtmlHelper();
|
$this->Form->Html =& new HtmlHelper();
|
||||||
|
|
Loading…
Add table
Reference in a new issue