mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
65a047542e
commit
af49aec444
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue