You are here

public function HtaccessTest::testSvgzContentEncoding in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/System/HtaccessTest.php \Drupal\system\Tests\System\HtaccessTest::testSvgzContentEncoding()

Tests that SVGZ files are served with Content-Encoding: gzip.

File

core/modules/system/src/Tests/System/HtaccessTest.php, line 147
Contains \Drupal\system\Tests\System\HtaccessTest.

Class

HtaccessTest
Tests .htaccess is working correctly.

Namespace

Drupal\system\Tests\System

Code

public function testSvgzContentEncoding() {
  $this
    ->drupalGet('core/modules/system/tests/logo.svgz');
  $this
    ->assertResponse(200);
  $header = $this
    ->drupalGetHeader('Content-Encoding');
  $this
    ->assertEqual($header, 'gzip');
}