function ManageDisplayTest::assertNodeViewText

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

Parameters

Node $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 drupal/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageDisplayTest.php
Tests switching view modes to use custom or 'default' settings'.

File

drupal/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageDisplayTest.php, line 231
Definition of Drupal\field_ui\Tests\ManageDisplayTest.

Class

ManageDisplayTest
Tests the functionality of the 'Manage display' screens.

Namespace

Drupal\field_ui\Tests

Code

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