function BlockInterestCohortTest::testExistingPolicyHeader in Drupal 7
Tests that an existing header is appended to correctly.
File
- modules/
simpletest/ tests/ common.test, line 3285 - Tests for common.inc functionality.
Class
- BlockInterestCohortTest
- Test for block_interest_cohort.
Code
function testExistingPolicyHeader() {
$this
->drupalGet('common-test/existing_permissions_policy_header');
$this
->assertTrue(strpos($this
->drupalGetHeader('Permissions-Policy'), 'geolocation=(),interest-cohort=()') !== FALSE, 'The existing header is appended to.');
}