BasicContext->stepPageCantBeFound

This commit is contained in:
Ingo Schommer 2013-10-02 17:10:13 +02:00
parent d673fe3ac7
commit 9d73942bbd

View File

@ -253,6 +253,20 @@ JS;
}
}
/**
* @Given /^the page can't be found/
*/
public function stepPageCantBeFound()
{
$page = $this->getSession()->getPage();
assertTrue(
// Content from ErrorPage default record
$page->hasContent('Page not found')
// Generic ModelAsController message
|| $page->hasContent('The requested page could not be found')
);
}
/**
* @Given /^I wait (?:for )?([\d\.]+) second(?:s?)$/
*/