public function ManageDisplayTest::assertNodeViewText in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php \Drupal\Tests\field_ui\Functional\ManageDisplayTest::assertNodeViewText()
Asserts that a string is found in the rendered node in a view mode.
Parameters
\Drupal\Core\Entity\EntityInterface $node: The node.
$view_mode: The view mode in which the node should be displayed.
$text: Plain text to look for.
$message: Message to display.
Return value
TRUE on pass, FALSE on fail.
1 call to ManageDisplayTest::assertNodeViewText()
- ManageDisplayTest::testViewModeCustom in core/
modules/ field_ui/ tests/ src/ Functional/ ManageDisplayTest.php - Tests switching view modes to use custom or 'default' settings'.
File
- core/
modules/ field_ui/ tests/ src/ Functional/ ManageDisplayTest.php, line 233
Class
- ManageDisplayTest
- Tests the Field UI "Manage display" and "Manage form display" screens.
Namespace
Drupal\Tests\field_ui\FunctionalCode
public function assertNodeViewText(EntityInterface $node, $view_mode, $text, $message) {
return $this
->assertNodeViewTextHelper($node, $view_mode, $text, $message, FALSE);
}