ImboUnitTest\EventListener\ResponseETagTest::getRoutesForETags PHP Method

getRoutesForETags() public method

Data provider
public getRoutesForETags ( ) : array[]
return array[]
    public function getRoutesForETags()
    {
        return ['index route has no ETag' => ['index', false], 'stats route has no ETag' => ['stats', false], 'status route has no ETag' => ['status', false], 'user route has ETag' => ['user', true, true, '{"user":"christer"}'], 'images route has ETag' => ['images', true, true, '{"search":{"hits":0,"page":1,"limit":20,"count":0},"images":[]}'], 'image route has ETag' => ['image', true, true, file_get_contents(FIXTURES_DIR . '/image.png')], 'metadata route has ETag' => ['metadata', true, true, '{"foo":"bar"}'], 'shorturl route has ETag' => ['globalshorturl', true, true, file_get_contents(FIXTURES_DIR . '/image.png')], 'response codes other than 200 does not get ETags' => ['globalshorturl', true, false]];
    }