entity::clean()
As we already have insert...() and update...() methods, i think it would be useful to have a simple method to clean test entity. Like
<?php
$phabric->clean('event');
$phabric->getEntity('event')->clean();
Agreed will implement tonight.
or maybe clear() would be better name
I'd suggest reset(), as It should reverse everything done since the last call to reset (or the start).
Added the Gherkin which defines this feature in latest commit (reset-fixture.feature)
yeah but as you said, the scenario is not passing yet right? will reset reset only the data managed by phabric or will actually reset the whole db? I am of the opinion that there has to be 2 layers at laest, one for suite setup and one for scenario setup ... just a thought @benwaine