public function testPerformSendsClickCommand()
 {
     $coords = $this->getMockBuilder('Facebook\\WebDriver\\Interactions\\Internal\\WebDriverCoordinates')->disableOriginalConstructor()->getMock();
     $this->webDriverMouse->expects($this->once())->method('click')->with($coords);
     $this->locationProvider->expects($this->once())->method('getCoordinates')->will($this->returnValue($coords));
     $this->webDriverClickAction->perform();
 }
 public function testPerformFocusesOnElementAndSendPressKeyCommand()
 {
     $coords = $this->getMockBuilder('Facebook\\WebDriver\\Interactions\\Internal\\WebDriverCoordinates')->disableOriginalConstructor()->getMock();
     $this->webDriverMouse->expects($this->once())->method('mouseMove')->with($coords, 150, 200);
     $this->locationProvider->expects($this->once())->method('getCoordinates')->will($this->returnValue($coords));
     $this->webDriverMoveToOffsetAction->perform();
 }