Merge pull request #10 from srizzling/is620

Added delete state to step defination
This commit is contained in:
Ingo Schommer 2013-11-15 02:32:13 -08:00
commit 7d48da31d4

View File

@ -227,6 +227,7 @@ class FixtureContext extends BehatContext
}
}
/**
* Example: Given the "page" "Page 1" is not published
*
@ -256,6 +257,9 @@ class FixtureContext extends BehatContext
$clone->delete();
\Versioned::reading_stage($oldMode);
break;
case 'deleted':
$obj->delete();
break;
default:
throw new \InvalidArgumentException(sprintf(
'Invalid state: "%s"', $state