You are here

function BlockInterestCohortTest::testExistingInterestCohortPolicy in Drupal 7

Tests that an existing interest-cohort policy is not overwritten.

File

modules/simpletest/tests/common.test, line 3277
Tests for common.inc functionality.

Class

BlockInterestCohortTest
Test for block_interest_cohort.

Code

function testExistingInterestCohortPolicy() {
  $this
    ->drupalGet('common-test/existing_interest_cohort_policy');
  $this
    ->assertEqual($this
    ->drupalGetHeader('Permissions-Policy'), 'interest-cohort=*', 'Existing interest-cohort policy is not overwritten.');
}