Elgg\Application\ServeFileHandlerTest::testSends304WithIfNoneMatchHeadersIncluded PHP Method

testSends304WithIfNoneMatchHeadersIncluded() public method

    public function testSends304WithIfNoneMatchHeadersIncluded()
    {
        $file = new \Elgg\FileService\File();
        $file->setFile($this->file);
        $request = $this->createRequest($file);
        $request->headers->set('if_none_match', '"' . $this->file->getModifiedTime() . '"');
        $response = $this->handler->getResponse($request);
        $this->assertEquals(304, $response->getStatusCode());
    }