public function BestPracticesTest::testImplementFindXpath in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Basic/BestPracticesTest.php \Behat\Mink\Tests\Driver\Basic\BestPracticesTest::testImplementFindXpath()
@depends testExtendsCoreDriver
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Basic/ BestPracticesTest.php, line 24
Class
- BestPracticesTest
- This testcase ensures that the driver implementation follows recommended practices for drivers.
Namespace
Behat\Mink\Tests\Driver\BasicCode
public function testImplementFindXpath() {
$driver = $this
->createDriver();
$this
->assertNotImplementMethod('find', $driver, 'The driver should overwrite `findElementXpaths` rather than `find` for forward compatibility with Mink 2.');
$this
->assertImplementMethod('findElementXpaths', $driver, 'The driver must be able to find elements.');
$this
->assertNotImplementMethod('setSession', $driver, 'The driver should not deal with the Session directly for forward compatibility with Mink 2.');
}