Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-29 09:44:53 +0300
committerJoas Schilling <coding@schilljs.com>2021-04-29 09:44:53 +0300
commit43d6921772ee3f20b8a242095867470f2f5177ed (patch)
tree1aa231e04e93f8f147efc11033def0bb5a2c76f6 /tests
parentf585fbc39127d1f001882d872febf2245bed5751 (diff)
429 template is NC20+ and fix getDelay for CLI
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Middleware/Security/RateLimitingMiddlewareTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/AppFramework/Middleware/Security/RateLimitingMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/RateLimitingMiddlewareTest.php
index 4e564f3eead..2804b8cd90c 100644
--- a/tests/lib/AppFramework/Middleware/Security/RateLimitingMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/RateLimitingMiddlewareTest.php
@@ -270,8 +270,10 @@ class RateLimitingMiddlewareTest extends TestCase {
$result = $this->rateLimitingMiddleware->afterException($controller, 'testMethod', new RateLimitExceededException());
$expected = new TemplateResponse(
'core',
- '429',
- [],
+ '403',
+ [
+ 'message' => 'Rate limit exceeded',
+ ],
'guest'
);
$expected->setStatus(429);