protected function InlineEntityFormTestBase::assertRowByTitle in Inline Entity Form 8
Asserts that an IEF table row exists.
Parameters
string $title: The title of the row to check.
Return value
\Behat\Mink\Element\NodeElement The <td> element containing the label for the IEF row.
5 calls to InlineEntityFormTestBase::assertRowByTitle()
- ComplexWidgetTest::checkNestedNodeEditing in tests/
src/ FunctionalJavascript/ ComplexWidgetTest.php - Checks that nested IEF entity references can be edited and saved.
- ComplexWidgetTest::testDuplicatingEntities in tests/
src/ FunctionalJavascript/ ComplexWidgetTest.php - Tests if duplicating entities works.
- ComplexWidgetTest::testEntityEditingAndRemoving in tests/
src/ FunctionalJavascript/ ComplexWidgetTest.php - Tests if editing and removing entities work.
- ComplexWidgetTest::testReferencingExistingEntities in tests/
src/ FunctionalJavascript/ ComplexWidgetTest.php - Tests if referencing existing entities work.
- TranslationTest::testTranslation in tests/
src/ FunctionalJavascript/ TranslationTest.php - Tests translating inline entities.
File
- tests/
src/ FunctionalJavascript/ InlineEntityFormTestBase.php, line 230
Class
- InlineEntityFormTestBase
- Base Class for Inline Entity Form Tests.
Namespace
Drupal\Tests\inline_entity_form\FunctionalJavascriptCode
protected function assertRowByTitle(string $title) {
$this
->assertNotEmpty($element = $this
->assertSession()
->elementExists('xpath', '//td[@class="inline-entity-form-node-label" and text()="' . $title . '"]'));
return $element;
}