You are here

function BlockInterestCohortTest::testDefaultBlocking in Drupal 7

Tests that FLoC is blocked by default.

File

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

Class

BlockInterestCohortTest
Test for block_interest_cohort.

Code

function testDefaultBlocking() {
  $this
    ->drupalGet('node');
  $this
    ->assertEqual($this
    ->drupalGetHeader('Permissions-Policy'), 'interest-cohort=()', 'FLoC is blocked by default.');
}