clean up here is superflous, will already be removed by user session

This commit is contained in:
Arthur Schiwon 2014-05-23 10:16:18 +02:00
parent 60274d1729
commit 86880acee9
1 changed files with 0 additions and 6 deletions

View File

@ -243,8 +243,6 @@ class Session extends \PHPUnit_Framework_TestCase {
array($manager, $session));
$granted = $userSession->loginWithCookie('foo', $token);
//clean up token
\OC_Preferences::deleteKey('foo', 'login_token', $token);
$this->assertSame($granted, true);
}
@ -287,8 +285,6 @@ class Session extends \PHPUnit_Framework_TestCase {
$userSession = new \OC\User\Session($manager, $session);
$granted = $userSession->loginWithCookie('foo', 'badToken');
//clean up token
\OC_Preferences::deleteKey('foo', 'login_token', $token);
$this->assertSame($granted, false);
}
@ -330,8 +326,6 @@ class Session extends \PHPUnit_Framework_TestCase {
$userSession = new \OC\User\Session($manager, $session);
$granted = $userSession->loginWithCookie('foo', $token);
//clean up token
\OC_Preferences::deleteKey('foo', 'login_token', $token);
$this->assertSame($granted, false);
}