Skip to content

Commit

Permalink
Remove un-necessary router reset and route creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 3, 2012
1 parent 9fa29d2 commit ed78fdd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Cake/Test/TestCase/Routing/RequestActionTraitTest.php
Expand Up @@ -140,8 +140,6 @@ public function testRequestActionArray() {
'Plugin' => array(CAKE . 'Test/TestApp/Plugin/') 'Plugin' => array(CAKE . 'Test/TestApp/Plugin/')
), App::RESET); ), App::RESET);
Plugin::load(array('TestPlugin')); Plugin::load(array('TestPlugin'));
Router::reload();
require CAKE . 'Config/routes.php';


$result = $this->object->requestAction( $result = $this->object->requestAction(
array('controller' => 'request_action', 'action' => 'test_request_action') array('controller' => 'request_action', 'action' => 'test_request_action')
Expand Down Expand Up @@ -216,9 +214,6 @@ public function testRequestActionParamParseAndPass() {
* @return void * @return void
*/ */
public function testRequestActionNoPostPassing() { public function testRequestActionNoPostPassing() {
Router::reload();
require CAKE . 'Config/routes.php';

$_POST = array( $_POST = array(
'item' => 'value' 'item' => 'value'
); );
Expand Down Expand Up @@ -263,9 +258,6 @@ public function testRequestActionWithQueryString() {
* @return void * @return void
*/ */
public function testRequestActionPostWithData() { public function testRequestActionPostWithData() {
Router::reload();
require CAKE . 'Config/routes.php';

$data = array( $data = array(
'Post' => array('id' => 2) 'Post' => array('id' => 2)
); );
Expand Down

0 comments on commit ed78fdd

Please sign in to comment.