Neos\Flow\Tests\Unit\Http\HeadersTest::noStoreCacheDirectiveCanBeSetAndRemoved PHP Method

noStoreCacheDirectiveCanBeSetAndRemoved() public method

(RFC 2616 / 14.9.2)
    public function noStoreCacheDirectiveCanBeSetAndRemoved()
    {
        $headers = new Headers();
        $headers->setCacheControlDirective('no-store');
        $this->assertEquals('no-store', $headers->get('Cache-Control'));
        $headers->setCacheControlDirective('public');
        $this->assertEquals('public, no-store', $headers->get('Cache-Control'));
        $headers->removeCacheControlDirective('no-store');
        $this->assertEquals('public', $headers->get('Cache-Control'));
    }