summaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Middleware
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-01 14:43:47 +0200
committerGitHub <noreply@github.com>2017-08-01 14:43:47 +0200
commit84c22fdeef6986f9038d8563937cc234751d5147 (patch)
treee56de337cebc2f069c5282909a89a5de29a29df4 /tests/lib/AppFramework/Middleware
parent6010c4f267f6b59e0dfd620dc928227f75dae9d1 (diff)
parentf22ab3e665124e79427f51049fea0f937b66cdbb (diff)
downloadnextcloud-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/lib/AppFramework/Middleware')
-rw-r--r--tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
index 14d3b796846..ae2345764ff 100644
--- a/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
@@ -112,6 +112,10 @@ class BruteForceMiddlewareTest extends TestCase {
->expects($this->once())
->method('isThrottled')
->willReturn(true);
+ $response
+ ->expects($this->once())
+ ->method('getThrottleMetadata')
+ ->willReturn([]);
$this->reflector
->expects($this->once())
->method('getAnnotationParameter')