You are here

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

Assert that a property is not being set.

Parameters

string $property: The property.

string $key: The key.

string $val: The value.

1 call to DfpTestBase::assertPropertyNotSet()
DisplayTagTest::testTargeting in tests/src/Functional/DisplayTagTest.php
Tests targeting display.

File

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

Class

DfpTestBase
An abstract class to build DFP tests from.

Namespace

Drupal\Tests\dfp\Functional

Code

protected function assertPropertyNotSet($property, $key, $val) {
  $pattern = $this
    ->getPropertyPattern($property, $key, $val);
  $this
    ->assertSession()
    ->responseNotMatches($pattern, 'A ' . $property . ' property was not set for ' . $key . ' = ' . $val);
}