You are here

function BlockInterestCohortTest::testDisableBlocking in Drupal 7

Tests that FLoC blocking can be disabled.

File

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

Class

BlockInterestCohortTest
Test for block_interest_cohort.

Code

function testDisableBlocking() {
  variable_set('block_interest_cohort', FALSE);
  $this
    ->drupalGet('node');
  $this
    ->assertFalse($this
    ->drupalGetHeader('Permissions-Policy'), 'FLoC blocking can be disabled.');
}