mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 15:05:32 +00:00
Merge pull request #10 from srizzling/is620
Added delete state to step defination
This commit is contained in:
commit
7d48da31d4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user