Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix CrudAuthorizeTest, added Router::reload() in setUp #1099

Merged
merged 1 commit into from

2 participants

@rikvdh

When having router-prefixes set the
Configure::write('Routing.prefixes', array());
clears it but a Router::reload() is required for prefixes to take effect

@lorenzo lorenzo merged commit 7392138 into cakephp:2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 29, 2013
  1. Fix CrudAuthorizeTest, added Router::reload() in setUp

    Rik van der Heijden authored
This page is out of date. Refresh to see the latest.
View
1  lib/Cake/Test/Case/Controller/Component/Auth/CrudAuthorizeTest.php
@@ -33,6 +33,7 @@ class CrudAuthorizeTest extends CakeTestCase {
public function setUp() {
parent::setUp();
Configure::write('Routing.prefixes', array());
+ Router::reload();
$this->Acl = $this->getMock('AclComponent', array(), array(), '', false);
$this->Components = $this->getMock('ComponentCollection');
Something went wrong with that request. Please try again.