From c58d8159d7bdee93a67a917e16b750fe99df9f99 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 31 May 2016 10:48:14 +0200 Subject: Create session tokens for apache auth users --- tests/lib/Authentication/Token/DefaultTokenProviderTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/lib/Authentication') diff --git a/tests/lib/Authentication/Token/DefaultTokenProviderTest.php b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php index e04424e4628..98cee208065 100644 --- a/tests/lib/Authentication/Token/DefaultTokenProviderTest.php +++ b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php @@ -134,6 +134,17 @@ class DefaultTokenProviderTest extends TestCase { $this->assertEquals('passme', $actual); } + /** + * @expectedException \OC\Authentication\Exceptions\PasswordlessTokenException + */ + public function testGetPasswordPasswordLessToken() { + $token = 'token1234'; + $tk = new DefaultToken(); + $tk->setPassword(null); + + $this->tokenProvider->getPassword($tk, $token); + } + /** * @expectedException \OC\Authentication\Exceptions\InvalidTokenException */ -- cgit v1.2.3