summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Authentication/LoginCredentials/StoreTest.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/lib/Authentication/LoginCredentials/StoreTest.php b/tests/lib/Authentication/LoginCredentials/StoreTest.php
index 56277fd0f34..9a719339b43 100644
--- a/tests/lib/Authentication/LoginCredentials/StoreTest.php
+++ b/tests/lib/Authentication/LoginCredentials/StoreTest.php
@@ -58,7 +58,7 @@ class StoreTest extends TestCase {
$this->tokenProvider = $this->createMock(IProvider::class);
$this->logger = $this->createMock(ILogger::class);
- $this->store = new Store($this->session, $this->tokenProvider, $this->logger);
+ $this->store = new Store($this->session, $this->logger, $this->tokenProvider);
}
public function testAuthenticate() {
@@ -81,6 +81,14 @@ class StoreTest extends TestCase {
$this->store->setSession($session);
}
+ public function testGetLoginCredentialsNoTokenProvider() {
+ $this->store = new Store($this->session, $this->logger, null);
+
+ $this->expectException(CredentialsUnavailableException::class);
+
+ $this->store->getLoginCredentials();
+ }
+
public function testGetLoginCredentials() {
$uid = 'uid';
$user = 'user123';