You are here

public function JavascriptEvaluationTest::testEvaluateJavascript in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

JavascriptEvaluationTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function testEvaluateJavascript($script) {
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/index.html'));
  $this
    ->assertSame(2, $this
    ->getSession()
    ->evaluateScript($script));
}