Skip to content

Commit

Permalink
Remove bogus test.
Browse files Browse the repository at this point in the history
It was failing as the method handling was wonky.
  • Loading branch information
markstory committed Mar 25, 2012
1 parent a6c2144 commit 3ff1ff1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cake/tests/cases/libs/controller/components/auth.test.php
Expand Up @@ -1020,17 +1020,6 @@ function testLoginRedirect() {

$this->Controller->Session->delete('Auth');

$this->Controller->params['url']['url'] = 'admin/';
$this->Controller->Auth->initialize($this->Controller);
$this->Controller->Auth->userModel = 'AuthUser';
$this->Controller->Auth->loginRedirect = null;
$this->Controller->Auth->startup($this->Controller);
$expected = Router::normalize('admin/');
$this->assertTrue($this->Controller->Session->check('Message.auth'));
$this->assertEqual($expected, $this->Controller->Auth->redirect());

$this->Controller->Session->delete('Auth');

//empty referer no session
$_SERVER['HTTP_REFERER'] = false;
$_ENV['HTTP_REFERER'] = false;
Expand Down

0 comments on commit 3ff1ff1

Please sign in to comment.