Adding session->delete() to remove bleed through in tests.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8009 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2009-01-21 22:52:44 +00:00
parent 65a047542e
commit af49aec444

View file

@ -963,6 +963,7 @@ class AuthTest extends CakeTestCase {
$user = $this->Controller->Auth->user();
$this->assertTrue(!!$user);
$this->Controller->Session->del('Auth');
Router::reload();
Router::connect('/', array('controller' => 'people', 'action' => 'login'));
$url = '/';
@ -971,7 +972,6 @@ class AuthTest extends CakeTestCase {
'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);