Elgg\Application\ServeFileHandlerTest::testSends304WithIfNoneMatchHeadersIncludedAndDeflationEnabled PHP Метод

testSends304WithIfNoneMatchHeadersIncludedAndDeflationEnabled() публичный Метод

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