diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-10-09 19:51:09 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-10-09 19:51:09 +0300 |
commit | ae999a9e41bef77a9c2dcb78dc814437d99cf644 (patch) | |
tree | f9e27535b491f01211829962b8fc6687a2d084ac /tests/unit | |
parent | b80b94e408b245c4fe1843bcbc8f919e7de6501e (diff) |
fix test
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/Controller/SAMLControllerTest.php | 38 |
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'); |