diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-29 09:44:53 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-29 09:44:53 +0300 |
commit | 43d6921772ee3f20b8a242095867470f2f5177ed (patch) | |
tree | 1aa231e04e93f8f147efc11033def0bb5a2c76f6 /tests | |
parent | f585fbc39127d1f001882d872febf2245bed5751 (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.php | 6 |
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); |