You are here

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

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

File

tests/dfp.test, line 485
Test file for DFP module.

Class

dfpGlobalsTest

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.');
}