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