You are here

function ManageDisplayTest::assertNodeViewNoText in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Tests/ManageDisplayTest.php \Drupal\field_ui\Tests\ManageDisplayTest::assertNodeViewNoText()

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

Parameters

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::assertNodeViewNoText()
ManageDisplayTest::testViewModeCustom in core/modules/field_ui/src/Tests/ManageDisplayTest.php
Tests switching view modes to use custom or 'default' settings'.

File

core/modules/field_ui/src/Tests/ManageDisplayTest.php, line 442
Contains \Drupal\field_ui\Tests\ManageDisplayTest.

Class

ManageDisplayTest
Tests the Field UI "Manage display" and "Manage form display" screens.

Namespace

Drupal\field_ui\Tests

Code

function assertNodeViewNoText(EntityInterface $node, $view_mode, $text, $message) {
  return $this
    ->assertNodeViewTextHelper($node, $view_mode, $text, $message, TRUE);
}