From f22ab3e665124e79427f51049fea0f937b66cdbb Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 27 Jul 2017 14:14:20 +0200 Subject: Add metadata to \OCP\AppFramework\Http\Response::throttle Fixes https://github.com/nextcloud/server/issues/5891 Signed-off-by: Lukas Reschke --- tests/lib/AppFramework/Http/ResponseTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/lib/AppFramework/Http/ResponseTest.php') diff --git a/tests/lib/AppFramework/Http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php index d8959face89..9267d862600 100644 --- a/tests/lib/AppFramework/Http/ResponseTest.php +++ b/tests/lib/AppFramework/Http/ResponseTest.php @@ -269,4 +269,9 @@ class ResponseTest extends \Test\TestCase { $this->childResponse->throttle(); $this->assertTrue($this->childResponse->isThrottled()); } + + public function testGetThrottleMetadata() { + $this->childResponse->throttle(['foo' => 'bar']); + $this->assertSame(['foo' => 'bar'], $this->childResponse->getThrottleMetadata()); + } } -- cgit v1.2.3