function LinkFieldUITest::assertNoFieldContainsRawText
Same name in other branches
- 9 core/modules/link/tests/src/Functional/LinkFieldUITest.php \Drupal\Tests\link\Functional\LinkFieldUITest::assertNoFieldContainsRawText()
- 8.9.x core/modules/link/tests/src/Functional/LinkFieldUITest.php \Drupal\Tests\link\Functional\LinkFieldUITest::assertNoFieldContainsRawText()
- 11.x core/modules/link/tests/src/Functional/LinkFieldUITest.php \Drupal\Tests\link\Functional\LinkFieldUITest::assertNoFieldContainsRawText()
Checks that given field does not contain the given raw text.
@internal
Parameters
string $field_name: The name of the field to check.
string $text: The text to check.
1 call to LinkFieldUITest::assertNoFieldContainsRawText()
- LinkFieldUITest::runFieldUIItem in core/
modules/ link/ tests/ src/ Functional/ LinkFieldUITest.php - Tests one link field UI item.
File
-
core/
modules/ link/ tests/ src/ Functional/ LinkFieldUITest.php, line 239
Class
- LinkFieldUITest
- Tests link field UI functionality.
Namespace
Drupal\Tests\link\FunctionalCode
protected function assertNoFieldContainsRawText(string $field_name, string $text) : void {
$this->assertFalse((bool) preg_match('/' . preg_quote($text, '/') . '/ui', $this->getFieldHtml($field_name)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.