You are here

public function NodeElementTest::testDragTo in Zircon Profile 8

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

File

vendor/behat/mink/tests/Element/NodeElementTest.php, line 488

Class

NodeElementTest

Namespace

Behat\Mink\Tests\Element

Code

public function testDragTo() {
  $node = new NodeElement('some_tag1', $this->session);
  $target = $this
    ->getMock('Behat\\Mink\\Element\\ElementInterface');
  $target
    ->expects($this
    ->any())
    ->method('getXPath')
    ->will($this
    ->returnValue('some_tag2'));
  $this->driver
    ->expects($this
    ->once())
    ->method('dragTo')
    ->with('some_tag1', 'some_tag2');
  $node
    ->dragTo($target);
}