function WebAssert::fieldValueEquals
Same name in other branches
- 9 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::fieldValueEquals()
- 10 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::fieldValueEquals()
File
-
core/
tests/ Drupal/ Tests/ WebAssert.php, line 985
Class
- WebAssert
- Defines a class with methods for asserting presence of elements during tests.
Namespace
Drupal\TestsCode
public function fieldValueEquals(string $field, $value, ?TraversableElement $container = NULL) {
if (!is_string($value)) {
// @todo Trigger deprecation in
// https://www.drupal.org/project/drupal/issues/3421105.
$value = (string) $value;
}
parent::fieldValueEquals($field, $value, $container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.