Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Klaffenbach <daniel.klaffenbach@hrz.tu-chemnitz.de>2018-04-19 15:12:41 +0300
committerDaniel Klaffenbach <daniel.klaffenbach@hrz.tu-chemnitz.de>2018-11-22 11:45:08 +0300
commit624d1a23b9afd648db3b1eab00bc390ed96ac0e1 (patch)
treec843232bbac2a51b9b6c21d9ba663467552bcab0 /tests
parent24883d3c6631565f691fbb432e9ab569f2306bb5 (diff)
Implement mapping of user's home directory
Signed-off-by: Daniel Klaffenbach <daniel.klaffenbach@hrz.tu-chemnitz.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Controller/SAMLControllerTest.php2
-rw-r--r--tests/unit/Settings/AdminTest.php5
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit/Controller/SAMLControllerTest.php b/tests/unit/Controller/SAMLControllerTest.php
index 2ff2a461..d9a68523 100644
--- a/tests/unit/Controller/SAMLControllerTest.php
+++ b/tests/unit/Controller/SAMLControllerTest.php
@@ -340,7 +340,7 @@ class SAMLControllerTest extends TestCase {
->method('createUserIfNotExists')
->with('MyUid');
$this->userBackend
- ->expects($this->once())
+ ->expects($this->exactly(2))
->method('getCurrentUserId')
->willReturn('MyUid');
$this->userManager
diff --git a/tests/unit/Settings/AdminTest.php b/tests/unit/Settings/AdminTest.php
index 5bc7d851..e0713ccd 100644
--- a/tests/unit/Settings/AdminTest.php
+++ b/tests/unit/Settings/AdminTest.php
@@ -129,6 +129,11 @@ class AdminTest extends \Test\TestCase {
'type' => 'line',
'required' => true,
],
+ 'home_mapping' => [
+ 'text' => $this->l10n->t('Attribute to map the users home to.'),
+ 'type' => 'line',
+ 'required' => true,
+ ],
];
$params = [