You are here

function dfpGlobalsTest::testGlobalSettingsOff in Doubleclick for Publishers (DFP) 7

Same name and namespace in other branches
  1. 7.2 tests/dfp.test \dfpGlobalsTest::testGlobalSettingsOff()

File

tests/dfp_globals.test, line 40
Globals test file for DFP module.

Class

dfpGlobalsTest
@file Globals test file for DFP module.

Code

function testGlobalSettingsOff() {
  variable_set('dfp_async_rendering', '0');
  variable_set('dfp_single_request', '0');
  variable_set('dfp_collapse_empty_divs', '0');
  $this
    ->drupalGet('/');
  $this
    ->assertNoRaw('googletag.pubads().enableAsyncRendering();', 'Asyncronous rendering is turned off.');
  $this
    ->assertNoRaw('googletag.pubads().enableSingleRequest();', 'Single request is turned off.');
  $this
    ->assertNoRaw('googletag.pubads().collapseEmptyDivs();', 'Collapse empty divs is turned off.');
}