You are here

function dfpBaseTest::assertPropertySet in Doubleclick for Publishers (DFP) 7

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

Assert that a property is properly being set.

6 calls to dfpBaseTest::assertPropertySet()
dfpAdCategoriesTest::testDisplayAdCategories in tests/dfp_ad_categories.test
dfpDisplayTagTest::testBackfill in tests/dfp_display_tag.test
dfpDisplayTagTest::testTargeting in tests/dfp_display_tag.test
dfpTokensTest::testNetworkIDToken in tests/dfp_tokens.test
dfpTokensTest::testSlotToken in tests/dfp_tokens.test

... See full list

File

tests/dfp_base.test, line 117
Base test file for DFP module.

Class

dfpBaseTest
@file Base test file for DFP module.

Code

function assertPropertySet($property, $key, $val) {
  $pattern = '|' . '.set' . $property . '\\("' . $key . '",{1}\\s(.)*' . addslashes($val) . '|';
  $this
    ->assertPattern($pattern, 'A ' . $property . ' property was set for ' . $key . ' = ' . $val);
}