public function JavascriptEvaluationTest::testEvaluateJavascript in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink/driver-testsuite/tests/Js/JavascriptEvaluationTest.php \Behat\Mink\Tests\Driver\Js\JavascriptEvaluationTest::testEvaluateJavascript()
@dataProvider provideEvaluatedScript
File
- vendor/
behat/ mink/ driver-testsuite/ tests/ Js/ JavascriptEvaluationTest.php, line 65
Class
Namespace
Behat\Mink\Tests\Driver\JsCode
public function testEvaluateJavascript($script) {
$this
->getSession()
->visit($this
->pathTo('/index.html'));
$this
->assertSame(2, $this
->getSession()
->evaluateScript($script));
}