You are here

public function SsiTest::testProcessDoesNothingIfContentTypeIsNotHtml in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/SsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\SsiTest::testProcessDoesNothingIfContentTypeIsNotHtml()

File

vendor/symfony/http-kernel/Tests/HttpCache/SsiTest.php, line 82

Class

SsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testProcessDoesNothingIfContentTypeIsNotHtml() {
  $ssi = new Ssi();
  $request = Request::create('/');
  $response = new Response();
  $response->headers
    ->set('Content-Type', 'text/plain');
  $ssi
    ->process($request, $response);
  $this
    ->assertFalse($response->headers
    ->has('x-body-eval'));
}