Make page count assertion more sensitive

refs #7163
This commit is contained in:
Johannes Meyer 2014-10-24 14:06:31 +02:00
parent 1bd5868a88
commit 851682cf18

View File

@ -134,8 +134,8 @@ class Wizard
protected function assertHasPages() protected function assertHasPages()
{ {
$pages = $this->getPages(); $pages = $this->getPages();
if (empty($pages)) { if (count($pages) < 2) {
throw new LogicException('Although Chuck Norris can advance a wizard without any pages, you can\'t.'); throw new LogicException("Although Chuck Norris can advance a wizard with less than two pages, you can't.");
} }
} }