private function TwigTweakTest::assertXpath in Twig Tweak 3.1.x
Same name and namespace in other branches
- 3.x tests/src/Functional/TwigTweakTest.php \Drupal\Tests\twig_tweak\Functional\TwigTweakTest::assertXpath()
Checks that an element specified by a the xpath exists on the current page.
1 call to TwigTweakTest::assertXpath()
- TwigTweakTest::testOutput in tests/
src/ Functional/ TwigTweakTest.php - Tests output produced by the Twig extension.
File
- tests/
src/ Functional/ TwigTweakTest.php, line 414
Class
- TwigTweakTest
- A test for Twig extension.
Namespace
Drupal\Tests\twig_tweak\FunctionalCode
private function assertXpath(string $xpath) : void {
$this
->assertSession()
->elementExists('xpath', $xpath);
}