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

Ability to load fixtures once before test class #88

Open
Kwadz opened this issue Mar 24, 2017 · 2 comments
Open

Ability to load fixtures once before test class #88

Kwadz opened this issue Mar 24, 2017 · 2 comments
Labels
enhancement New feature or request

Comments

@Kwadz
Copy link

Kwadz commented Mar 24, 2017

Currently we can load fixtures:

Only the possibility to load fixtures once before test class is missing (like we do with PHPUnit setupBeforeClass()).

So, I would like to add this ability by implementing a simple flag and a $once parameter in methods like loadFixtureFiles() as follows:

public function loadFixtureFiles(array $paths = array(), $append = false, $omName = null, $registryName = 'doctrine', $once = false)

What do you think?

@Kwadz Kwadz changed the title Ability to load fixture once before test class Ability to load fixtures once before test class Mar 24, 2017
@alexislefebvre alexislefebvre transferred this issue from liip/LiipFunctionalTestBundle Jan 13, 2021
@alexislefebvre
Copy link
Collaborator

It may be possible with #81 or we could add another event for that.

@alexislefebvre
Copy link
Collaborator

With the 2.x release, we removed the trait and moved the fixtures loading to a service. Could the service could be called in setupBeforeClass()?

@alexislefebvre alexislefebvre added the enhancement New feature or request label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants