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:
authorBjoern Schiessle <bjoern@schiessle.org>2018-10-09 19:51:09 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2018-10-09 19:51:09 +0300
commitae999a9e41bef77a9c2dcb78dc814437d99cf644 (patch)
treef9e27535b491f01211829962b8fc6687a2d084ac /tests
parentb80b94e408b245c4fe1843bcbc8f919e7de6501e (diff)
fix test
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Controller/SAMLControllerTest.php38
1 files changed, 2 insertions, 36 deletions
diff --git a/tests/unit/Controller/SAMLControllerTest.php b/tests/unit/Controller/SAMLControllerTest.php
index a816aaa3..af5472c0 100644
--- a/tests/unit/Controller/SAMLControllerTest.php
+++ b/tests/unit/Controller/SAMLControllerTest.php
@@ -126,11 +126,6 @@ class SAMLControllerTest extends TestCase {
]);
$this->config
->expects($this->at(1))
- ->method('getSystemValue')
- ->with('gs.enabled', false)
- ->willReturn(false);
- $this->config
- ->expects($this->at(2))
->method('getAppValue')
->with('user_saml', 'general-uid_mapping')
->willReturn('uid');
@@ -141,7 +136,8 @@ class SAMLControllerTest extends TestCase {
->willReturn('https://nextcloud.com/notProvisioned/');
$expected = new RedirectResponse('https://nextcloud.com/notProvisioned/');
- $this->assertEquals($expected, $this->samlController->login(1));
+ $result = $this->samlController->login(1);
+ $this->assertEquals($expected, $result);
}
@@ -162,11 +158,6 @@ class SAMLControllerTest extends TestCase {
]);
$this->config
->expects($this->at(1))
- ->method('getSystemValue')
- ->with('gs.enabled', false)
- ->willReturn(false);
- $this->config
- ->expects($this->at(2))
->method('getAppValue')
->with('user_saml', 'general-uid_mapping')
->willReturn('uid');
@@ -216,11 +207,6 @@ class SAMLControllerTest extends TestCase {
]);
$this->config
->expects($this->at(1))
- ->method('getSystemValue')
- ->with('gs.enabled', false)
- ->willReturn(false);
- $this->config
- ->expects($this->at(2))
->method('getAppValue')
->with('user_saml', 'general-uid_mapping')
->willReturn('uid');
@@ -270,11 +256,6 @@ class SAMLControllerTest extends TestCase {
]);
$this->config
->expects($this->at(1))
- ->method('getSystemValue')
- ->with('gs.enabled', false)
- ->willReturn(false);
- $this->config
- ->expects($this->at(2))
->method('getAppValue')
->with('user_saml', 'general-uid_mapping')
->willReturn('uid');
@@ -332,11 +313,6 @@ class SAMLControllerTest extends TestCase {
]);
$this->config
->expects($this->at(1))
- ->method('getSystemValue')
- ->with('gs.enabled', false)
- ->willReturn(false);
- $this->config
- ->expects($this->at(2))
->method('getAppValue')
->with('user_saml', 'general-uid_mapping')
->willReturn('uid');
@@ -389,11 +365,6 @@ class SAMLControllerTest extends TestCase {
]);
$this->config
->expects($this->at(1))
- ->method('getSystemValue')
- ->with('gs.enabled', false)
- ->willReturn(false);
- $this->config
- ->expects($this->at(2))
->method('getAppValue')
->with('user_saml', 'general-uid_mapping')
->willReturn('uid');
@@ -433,11 +404,6 @@ class SAMLControllerTest extends TestCase {
]);
$this->config
->expects($this->at(1))
- ->method('getSystemValue')
- ->with('gs.enabled', false)
- ->willReturn(false);
- $this->config
- ->expects($this->at(2))
->method('getAppValue')
->with('user_saml', 'general-uid_mapping')
->willReturn('uid');