public function testSeeLink() { $this->module->amOnPage('/'); $this->module->seeLink('More info'); $this->module->dontSeeLink('/info'); $this->module->dontSeeLink('#info'); $this->module->amOnPage('/info'); $this->module->seeLink('Back'); }
/** * @expectedException \PHPUnit_Framework_ExpectationFailedException * @expectedExceptionMessage Element 'a' was found */ public function testDontSeeLinkFail() { $this->module->amOnPage('/'); $this->module->dontSeeLink('More info', '/info'); }