Permalink
Browse files

Fixing failing tests because of core routes not being loaded.

  • Loading branch information...
1 parent 16073b4 commit c37c641b4a476c668e9ff9a2c5cdc89d534bc180 @markstory markstory committed Jul 18, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Test/Case/TestSuite/ControllerTestCaseTest.php
@@ -273,7 +273,9 @@ public function testTestAction() {
* Tests using loaded routes during tests
*/
public function testUseRoutes() {
+ Router::connect('/:controller/:action/*');
include CAKE . 'Test' . DS . 'test_app' . DS . 'Config' . DS . 'routes.php';
+
$controller = $this->Case->generate('TestsApps');
$controller->Components->load('RequestHandler');
$result = $this->Case->testAction('/tests_apps/index.json', array('return' => 'view'));
@@ -302,6 +304,7 @@ public function testUseRoutes() {
* @expectedException MissingActionException
*/
public function testSkipRoutes() {
+ Router::connect('/:controller/:action/*');
include CAKE . 'Test' . DS . 'test_app' . DS . 'Config' . DS . 'routes.php';
$this->Case->loadRoutes = false;

0 comments on commit c37c641

Please sign in to comment.