diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-01 14:43:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 14:43:47 +0200 |
commit | 84c22fdeef6986f9038d8563937cc234751d5147 (patch) | |
tree | e56de337cebc2f069c5282909a89a5de29a29df4 /tests/Core/Controller | |
parent | 6010c4f267f6b59e0dfd620dc928227f75dae9d1 (diff) | |
parent | f22ab3e665124e79427f51049fea0f937b66cdbb (diff) | |
download | nextcloud-server-84c22fdeef6986f9038d8563937cc234751d5147.tar.gz nextcloud-server-84c22fdeef6986f9038d8563937cc234751d5147.zip |
Merge pull request #5907 from nextcloud/add-metadata-to-throttle-call
Add metadata to \OCP\AppFramework\Http\Response::throttle
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r-- | tests/Core/Controller/LoginControllerTest.php | 4 |
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)); } } |