1.20.x common.test BlockInterestCohortTest::testExistingInterestCohortPolicy()

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

File

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

Class

BlockInterestCohortTest
Test for block_interest_cohort.

Code

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