/** * @covers ::hoverNode */ public function testHoverNode() { $node = new Node($this->browser, '10'); $this->browser->expects($this->once())->method('moveMouseTo')->with($node->getId()); $this->session->hoverNode($node); }
/** * @param CrawlerInterface $crawler */ public function __construct(CrawlerInterface $crawler, AbstractQuery $query = null) { $this->query = $query; parent::__construct($crawler, null); }
/** * @param Node $node * @return self */ public function hoverNode(Node $node) { $this->browser->moveMouseTo($node->getId()); return $this; }
/** * @covers ::__construct * @covers ::getCrawler * @covers ::getId */ public function testConstruct() { $node = new Node($this->crawler, '10'); $this->assertSame($this->crawler, $node->getCrawler()); $this->assertSame('10', $node->getId()); }