You are here

public function ApeMinTest::testApeHeaders in Advanced Page Expiration 8

Test that correct caching is applied.

File

src/Tests/ApeMinTest.php, line 56

Class

ApeMinTest
Test cache-control header is set correctly after minimal configuration.

Namespace

Drupal\ape\Tests

Code

public function testApeHeaders() {

  // Check user registration page has global age.
  $this
    ->drupalGet('user/register');
  $this
    ->assertEqual($this
    ->drupalGetHeader('Cache-Control'), 'max-age=2592000, public', 'Global Cache-Control header set.');
}