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/Functional/TestBase.php \Drupal\Tests\double_field\Functional\TestBase::assertXpath()
Checks that an element exists on the current page.
Parameters
string|array $xpath: The XPath identifying the element to check.
3 calls to TestBase::assertXpath()
- DateTimezoneTest::testDateSubfield in tests/
src/ Functional/ DateTimezoneTest.php - Test callback.
- FieldTypeTest::testFieldSettingsForm in tests/
src/ Functional/ FieldTypeTest.php - Test field settings form.
- FieldTypeTest::testFieldStorageSettingsForm in tests/
src/ Functional/ FieldTypeTest.php - Test field storage settings form.
File
- tests/
src/ Functional/ TestBase.php, line 214
Class
- TestBase
- Tests the creation of text fields.
Namespace
Drupal\Tests\double_field\FunctionalCode
protected function assertXpath($xpath) : void {
if (is_array($xpath)) {
$xpath = implode($xpath);
}
$this
->assertSession()
->elementExists('xpath', $xpath);
}