Skip to content

Commit

Permalink
Fixing a couple broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 11, 2014
1 parent b666bf9 commit 6684e36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestCase/Controller/Component/AuthComponentTest.php
Expand Up @@ -538,8 +538,8 @@ public function testLoginRedirect() {
'AuthUsers' => array('id' => '1', 'username' => 'nate')
));

$this->Auth->request->addParams(Router::parse('users/login'));
$this->Auth->request->url = 'users/login';
$this->Auth->request->addParams(Router::parse('Users/login'));
$this->Auth->request->url = 'Users/login';
$this->Auth->request->env('HTTP_REFERER', false);
$event = new Event('Controller.initialize', $this->Controller);
$this->Auth->initialize($event);
Expand Down Expand Up @@ -1044,7 +1044,7 @@ public function testComponentSettings() {
*/
public function testLogout() {
$this->Auth->session->write('Auth.User.id', '1');
$this->Auth->session->write('Auth.redirect', '/users/login');
$this->Auth->session->write('Auth.redirect', '/Users/login');
$this->Auth->config('logoutRedirect', '/');
$result = $this->Auth->logout();

Expand Down Expand Up @@ -1330,6 +1330,6 @@ public function testStatelessFollowedByStatefulAuth() {

$this->assertInstanceOf('Cake\Network\Response', $this->Auth->startup($event));

$this->assertEquals('/users/login', $this->Controller->testUrl);
$this->assertEquals('/Users/login', $this->Controller->testUrl);
}
}

0 comments on commit 6684e36

Please sign in to comment.