private function DfpTestBase::getPropertyPattern in Doubleclick for Publishers (DFP) 8
Gets pattern used in assertPropertySet() and assertPropertyNotSet().
Parameters
string $property: The property.
string $key: The key.
string $val: The value.
Return value
string The pattern.
2 calls to DfpTestBase::getPropertyPattern()
- DfpTestBase::assertPropertyNotSet in tests/
src/ Functional/ DfpTestBase.php - Assert that a property is not being set.
- DfpTestBase::assertPropertySet in tests/
src/ Functional/ DfpTestBase.php - Assert that a property is properly being set.
File
- tests/
src/ Functional/ DfpTestBase.php, line 219 - Contains \Drupal\Tests\dfp\Functional\DfpTestBase.
Class
- DfpTestBase
- An abstract class to build DFP tests from.
Namespace
Drupal\Tests\dfp\FunctionalCode
private function getPropertyPattern($property, $key, $val) {
return '|' . '.set' . $property . '\\(\'' . $key . '\',{1}\\s(.)*' . addslashes($val) . '|';
}