You are here

protected function ElementTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/Element/ElementTest.php \Behat\Mink\Tests\Element\ElementTest::setUp()
1 call to ElementTest::setUp()
DocumentElementTest::setUp in vendor/behat/mink/tests/Element/DocumentElementTest.php
1 method overrides ElementTest::setUp()
DocumentElementTest::setUp in vendor/behat/mink/tests/Element/DocumentElementTest.php

File

vendor/behat/mink/tests/Element/ElementTest.php, line 30

Class

ElementTest

Namespace

Behat\Mink\Tests\Element

Code

protected function setUp() {
  $this->driver = $this
    ->getMockBuilder('Behat\\Mink\\Driver\\DriverInterface')
    ->getMock();
  $this->driver
    ->expects($this
    ->once())
    ->method('setSession');
  $this->selectors = $this
    ->getMockBuilder('Behat\\Mink\\Selector\\SelectorsHandler')
    ->getMock();
  $this->session = new Session($this->driver, $this->selectors);
}