You are here

public function SessionTest::testEvaluateScript in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/SessionTest.php \Behat\Mink\Tests\SessionTest::testEvaluateScript()

File

vendor/behat/mink/tests/SessionTest.php, line 274

Class

SessionTest

Namespace

Behat\Mink\Tests

Code

public function testEvaluateScript() {
  $this->driver
    ->expects($this
    ->once())
    ->method('evaluateScript')
    ->with($arg = 'JS func')
    ->will($this
    ->returnValue($ret = '23'));
  $this
    ->assertEquals($ret, $this->session
    ->evaluateScript($arg));
}