summaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-27 14:14:20 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-07-27 14:17:45 +0200
commitf22ab3e665124e79427f51049fea0f937b66cdbb (patch)
treea2f4b3260853d0252b76d3ce452512a3f6a47ee6 /tests/Core
parent63aa12e38c2e819b54c4b9e9632264a0e59dc6f2 (diff)
downloadnextcloud-server-f22ab3e665124e79427f51049fea0f937b66cdbb.tar.gz
nextcloud-server-f22ab3e665124e79427f51049fea0f937b66cdbb.zip
Add metadata to \OCP\AppFramework\Http\Response::throttle
Fixes https://github.com/nextcloud/server/issues/5891 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Controller/LoginControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php
index bd2d0143caf..493bade9dd8 100644
--- a/tests/Core/Controller/LoginControllerTest.php
+++ b/tests/Core/Controller/LoginControllerTest.php
@@ -307,7 +307,7 @@ class LoginControllerTest extends TestCase {
->method('deleteUserValue');
$expected = new \OCP\AppFramework\Http\RedirectResponse($loginPageUrl);
- $expected->throttle();
+ $expected->throttle(['user' => 'MyUserName']);
$this->assertEquals($expected, $this->loginController->tryLogin($user, $password, '/apps/files'));
}
@@ -634,7 +634,7 @@ class LoginControllerTest extends TestCase {
->method('createRememberMeToken');
$expected = new RedirectResponse('');
- $expected->throttle();
+ $expected->throttle(['user' => 'john']);
$this->assertEquals($expected, $this->loginController->tryLogin('john@doe.com', 'just wrong', null));
}
}