BasicContext->stepPageCantBeFound

This commit is contained in:
Ingo Schommer 2013-10-02 17:10:13 +02:00
parent 9fec29e120
commit 89a72625d4
1 changed files with 14 additions and 0 deletions

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?)$/
*/