Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entity::clean() #7

Open
everzet opened this issue Aug 16, 2011 · 5 comments
Open

entity::clean() #7

everzet opened this issue Aug 16, 2011 · 5 comments
Milestone

Comments

@everzet
Copy link

everzet commented Aug 16, 2011

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();
@benwaine
Copy link
Collaborator

Agreed will implement tonight.

@everzet
Copy link
Author

everzet commented Aug 16, 2011

or maybe clear() would be better name

@glenjamin
Copy link
Contributor

I'd suggest reset(), as It should reverse everything done since the last call to reset (or the start).

@benwaine
Copy link
Collaborator

Added the Gherkin which defines this feature in latest commit (reset-fixture.feature)

@benwaine benwaine reopened this Aug 16, 2011
@cordoval
Copy link
Contributor

cordoval commented Sep 9, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants