You are here

protected function InlineEntityFormTestBase::assertNoNodeByTitle in Inline Entity Form 8

Passes if no node is found for the title.

Parameters

string $title: Node title to check.

string $message: Message to display.

3 calls to InlineEntityFormTestBase::assertNoNodeByTitle()
ComplexSimpleWidgetTest::testSimpleInComplex in tests/src/FunctionalJavascript/ComplexSimpleWidgetTest.php
Test a Simple IEF widget inside of Complex IEF widget.
ComplexWidgetTest::testNestedEntityCreationWithDifferentBundlesAjaxSubmit in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Tests the entity creation with different bundles nested in each other.
ElementWebTest::testCustomForm in tests/src/FunctionalJavascript/ElementWebTest.php
Tests IEF on a custom form.

File

tests/src/FunctionalJavascript/InlineEntityFormTestBase.php, line 90

Class

InlineEntityFormTestBase
Base Class for Inline Entity Form Tests.

Namespace

Drupal\Tests\inline_entity_form\FunctionalJavascript

Code

protected function assertNoNodeByTitle(string $title, $message = '') {
  if (!$message) {
    $message = "No node with title: {$title}";
  }
  $node = $this
    ->getNodeByTitle($title, TRUE);
  $this
    ->assertEmpty($node, $message);
}