From 12fa748c49773d57f03052ef3cee4c72a2d3cdcc Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 11 May 2020 16:18:01 +0200 Subject: Move the notmodified check to middleware where it belongs Signed-off-by: Roeland Jago Douma --- tests/lib/AppFramework/Http/DispatcherTest.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tests/lib/AppFramework/Http/DispatcherTest.php') diff --git a/tests/lib/AppFramework/Http/DispatcherTest.php b/tests/lib/AppFramework/Http/DispatcherTest.php index 74dbf68c28a..c4c973aec90 100644 --- a/tests/lib/AppFramework/Http/DispatcherTest.php +++ b/tests/lib/AppFramework/Http/DispatcherTest.php @@ -180,20 +180,12 @@ class DispatcherTest extends \Test\TestCase { $this->response->expects($this->once()) ->method('getStatus') ->willReturn(Http::STATUS_OK); - $this->response->expects($this->once()) - ->method('getLastModified') - ->willReturn($this->lastModified); - $this->response->expects($this->once()) - ->method('getETag') - ->willReturn($this->etag); $this->response->expects($this->once()) ->method('getHeaders') ->willReturn($responseHeaders); $this->http->expects($this->once()) ->method('getStatusHeader') - ->with($this->equalTo(Http::STATUS_OK), - $this->equalTo($this->lastModified), - $this->equalTo($this->etag)) + ->with($this->equalTo(Http::STATUS_OK)) ->willReturn($httpHeaders); $this->middlewareDispatcher->expects($this->once()) -- cgit v1.2.3