You are here

private function ElementExceptionTest::getElementMock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/Exception/ElementExceptionTest.php \Behat\Mink\Tests\Exception\ElementExceptionTest::getElementMock()
2 calls to ElementExceptionTest::getElementMock()
ElementExceptionTest::testElement in vendor/behat/mink/tests/Exception/ElementExceptionTest.php
ElementExceptionTest::testMessage in vendor/behat/mink/tests/Exception/ElementExceptionTest.php

File

vendor/behat/mink/tests/Exception/ElementExceptionTest.php, line 30

Class

ElementExceptionTest
@group legacy

Namespace

Behat\Mink\Tests\Exception

Code

private function getElementMock() {
  $mock = $this
    ->getMockBuilder('Behat\\Mink\\Element\\Element')
    ->disableOriginalConstructor()
    ->getMock();
  $mock
    ->expects($this
    ->any())
    ->method('getXPath')
    ->will($this
    ->returnValue('element XPath'));
  return $mock;
}