function dfpAdTestTest::testTestPage in Doubleclick for Publishers (DFP) 7
Same name and namespace in other branches
- 7.2 tests/dfp.test \dfpAdTestTest::testTestPage()
File
- tests/
dfp_ads.test, line 20 - Ads test file for DFP module.
Class
- dfpAdTestTest
- @file Ads test file for DFP module.
Code
function testTestPage() {
$tag = $this
->createTag();
$override = $this
->randomName(8);
$this
->drupalGet('admin/structure/dfp_ads/test_page', array(
'query' => array(
'adunit_override' => $override,
),
));
$this
->assertRaw('googletag.defineSlot("' . variable_get('dfp_network_id', '') . '/' . $override . '"', 'The Ad Unit Name was properly overridden on the Ad Test Page.');
}