summaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-08-30 11:10:45 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-08-30 11:10:45 +0200
commit0a0c7a9b927b04d441fcab8c1e5630de521743fd (patch)
tree8254c0ee882519e4eee146de94f493b65ae4a3ec /tests/Core
parentf4dfd1f1a31eda3b89d846a619698b688571a4e2 (diff)
downloadnextcloud-server-0a0c7a9b927b04d441fcab8c1e5630de521743fd.tar.gz
nextcloud-server-0a0c7a9b927b04d441fcab8c1e5630de521743fd.zip
redirect to default app after solving the 2FA challenge
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Controller/TwoFactorChallengeControllerTest.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/Core/Controller/TwoFactorChallengeControllerTest.php b/tests/Core/Controller/TwoFactorChallengeControllerTest.php
index 08d8dd1452c..648d99a82fc 100644
--- a/tests/Core/Controller/TwoFactorChallengeControllerTest.php
+++ b/tests/Core/Controller/TwoFactorChallengeControllerTest.php
@@ -167,13 +167,8 @@ class TwoFactorChallengeControllerTest extends TestCase {
->method('verifyChallenge')
->with('myprovider', $user, 'token')
->will($this->returnValue(true));
- $this->urlGenerator->expects($this->once())
- ->method('linkToRoute')
- ->with('files.view.index')
- ->will($this->returnValue('files/index/url'));
- $expected = new \OCP\AppFramework\Http\RedirectResponse('files/index/url');
- $this->assertEquals($expected, $this->controller->solveChallenge('myprovider', 'token'));
+ $this->assertInstanceOf('\OCP\AppFramework\Http\RedirectResponse', $this->controller->solveChallenge('myprovider', 'token'));
}
public function testSolveChallengeInvalidProvider() {