Пример #1
0
 public function testSeeLink()
 {
     $this->module->amOnPage('/');
     $this->module->seeLink('More info');
     $this->module->dontSeeLink('/info');
     $this->module->dontSeeLink('#info');
     $this->module->seeLink('More', '/info');
 }
Пример #2
0
 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/');
 }