protected function TestBase::assertXpath in Double Field 4.x
Same name in this branch
- 4.x tests/src/Functional/TestBase.php \Drupal\Tests\double_field\Functional\TestBase::assertXpath()
- 4.x tests/src/FunctionalJavascript/TestBase.php \Drupal\Tests\double_field\FunctionalJavascript\TestBase::assertXpath()
Same name and namespace in other branches
- 8.3 tests/src/FunctionalJavascript/TestBase.php \Drupal\Tests\double_field\FunctionalJavascript\TestBase::assertXpath()
Checks that an element exists on the current page.
12 calls to TestBase::assertXpath()
- FormatterTest::testAllowedValues in tests/
src/ FunctionalJavascript/ FormatterTest.php - Test callback.
- FormatterTest::testBooleanAndString in tests/
src/ FunctionalJavascript/ FormatterTest.php - Test callback.
- FormatterTest::testDateAndUri in tests/
src/ FunctionalJavascript/ FormatterTest.php - Test callback.
- FormatterTest::testDetailsFormatter in tests/
src/ FunctionalJavascript/ FormatterTest.php - Test callback.
- FormatterTest::testEmailAndTelephone in tests/
src/ FunctionalJavascript/ FormatterTest.php - Test callback.
File
- tests/
src/ FunctionalJavascript/ TestBase.php, line 249
Class
- TestBase
- Base class for Double Field JavaScript tests.
Namespace
Drupal\Tests\double_field\FunctionalJavascriptCode
protected function assertXpath(string $xpath) : void {
$xpath = str_replace('{field_name}', $this->fieldName, $xpath);
$this
->assertSession()
->elementExists('xpath', $xpath);
}