public function testSeeLink() { $this->module->amOnPage('/'); $this->module->seeLink('More info'); $this->module->dontSeeLink('/info'); $this->module->dontSeeLink('#info'); $this->module->seeLink('More', '/info'); }
public function testDontSeeLinkFailsIfTextAndUrlMatches() { $this->setExpectedException('PHPUnit_Framework_AssertionFailedError', "Link containing text 'Next' and URL 'http://codeception.com/' was found in page /external_url"); $this->module->amOnPage('/external_url'); $this->module->dontSeeLink('Next', 'http://codeception.com/'); }