protected function TestBase::assertNoXpath in Double Field 8.3
Same name in this branch
- 8.3 tests/src/Functional/TestBase.php \Drupal\Tests\double_field\Functional\TestBase::assertNoXpath()
- 8.3 tests/src/FunctionalJavascript/TestBase.php \Drupal\Tests\double_field\FunctionalJavascript\TestBase::assertNoXpath()
Same name and namespace in other branches
- 4.x tests/src/FunctionalJavascript/TestBase.php \Drupal\Tests\double_field\FunctionalJavascript\TestBase::assertNoXpath()
Checks that an element does not exist on the current page.
2 calls to TestBase::assertNoXpath()
- FormatterTest::testBooleanAndString in tests/
src/ FunctionalJavascript/ FormatterTest.php - Test callback.
- WidgetTest::testWidgetSettingsForm in tests/
src/ FunctionalJavascript/ WidgetTest.php - Test callback.
File
- tests/
src/ FunctionalJavascript/ TestBase.php, line 255
Class
- TestBase
- Base class for Double Field JavaScript tests.
Namespace
Drupal\Tests\double_field\FunctionalJavascriptCode
protected function assertNoXpath(string $xpath) : void {
$xpath = str_replace('{field_name}', $this->fieldName, $xpath);
$this
->assertSession()
->elementNotExists('xpath', $xpath);
}