You are here

protected function DfpTestBase::assertPropertySet in Doubleclick for Publishers (DFP) 8

Assert that a property is properly being set.

Parameters

string $property: The property.

string $key: The key.

string $val: The value.

Return value

bool TRUE if the property is set, FALSE otherwise.

2 calls to DfpTestBase::assertPropertySet()
DisplayTagTest::testBackfill in tests/src/Functional/DisplayTagTest.php
Tests Adsense backfill settings.
DisplayTagTest::testTargeting in tests/src/Functional/DisplayTagTest.php
Tests targeting display.

File

tests/src/Functional/DfpTestBase.php, line 185
Contains \Drupal\Tests\dfp\Functional\DfpTestBase.

Class

DfpTestBase
An abstract class to build DFP tests from.

Namespace

Drupal\Tests\dfp\Functional

Code

protected function assertPropertySet($property, $key, $val) {
  $pattern = $this
    ->getPropertyPattern($property, $key, $val);
  return $this
    ->assertPattern($pattern, 'A ' . $property . ' property was set for ' . $key . ' = ' . $val);
}