You are here

protected function InlineEntityFormTestBase::assertNoRowByTitle in Inline Entity Form 8

Asserts that an IEF table row does not exist.

Parameters

string $title: The title of the row to check.

2 calls to InlineEntityFormTestBase::assertNoRowByTitle()
ComplexWidgetTest::testEntityEditingAndRemoving in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Tests if editing and removing entities work.
ComplexWidgetTest::testSeparateNestedDataMultiValueFields in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Tests the separation of nested data.

File

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

Class

InlineEntityFormTestBase
Base Class for Inline Entity Form Tests.

Namespace

Drupal\Tests\inline_entity_form\FunctionalJavascript

Code

protected function assertNoRowByTitle(string $title) {
  $this
    ->assertSession()
    ->elementNotExists('xpath', '//td[@class="inline-entity-form-node-label" and text()="' . $title . '"]');
}