Skip to content

Commit

Permalink
Adding session->delete() to remove bleed through in tests.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8009 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
markstory committed Jan 21, 2009
1 parent 65a0475 commit af49aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/controller/components/auth.test.php
Expand Up @@ -963,6 +963,7 @@ function testCustomRoute() {
$user = $this->Controller->Auth->user();
$this->assertTrue(!!$user);

$this->Controller->Session->del('Auth');
Router::reload();
Router::connect('/', array('controller' => 'people', 'action' => 'login'));
$url = '/';
Expand All @@ -971,7 +972,6 @@ function testCustomRoute() {
'base' => null, 'here' => $url, 'webroot' => '/', 'passedArgs' => array(),
'argSeparator' => ':', 'namedArgs' => array()
)));

$this->Controller->data['AuthUser'] = array('username' => 'felix', 'password' => 'cake');
$this->Controller->params['url']['url'] = substr($url, 1);
$this->Controller->Auth->initialize($this->Controller);
Expand Down

0 comments on commit af49aec

Please sign in to comment.