1 field_ui.test FieldUIManageDisplayTestCase::assertNodeViewText(Node $node, $view_mode, $text, $message)

Asserts that a string is found in the rendered node in a display mode.

Parameters

Node $node: The node.

$view_mode: The display 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.:

File

core/modules/field_ui/tests/field_ui.test, line 709
Tests for field_ui.module.

Class

FieldUIManageDisplayTestCase
Tests the functionality of the 'Manage displays' screens.

Code

function assertNodeViewText(Node $node, $view_mode, $text, $message) {
  return $this->assertNodeViewTextHelper($node, $view_mode, $text, $message, FALSE);
}