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

Use ModuleResourceLoader for fixtures path #7961

Merged
merged 1 commit into from
Mar 29, 2018

Conversation

wilr
Copy link
Member

@wilr wilr commented Mar 27, 2018

This adds the ability to refer to a fixture file path by the ModuleResourceLoader path (e.g protected static $fixture_file = 'vendor/module:tests/fixtures.yml')

This adds the ability to refer to a fixture file path by the ModuleResourceLoader path (e.g  protected static $fixture_file = 'vendor/module:tests/fixtures.yml')
@robbieaverill
Copy link
Contributor

One issue I have with this is that we shouldn't have test dependencies between modules - is there a reason you'd need this other than that?

@wilr
Copy link
Member Author

wilr commented Mar 28, 2018

Well for instance this is in the case of silvershop + children modules and other groups of modules which have a large amount of fixtures to get started be nice to say "Use the base fixtures from silvershop-core" which sets up page types etc rather than copying that to the silvershop-discounts module.

@robbieaverill
Copy link
Contributor

Right - true, could be useful for large app integration suites

@tractorcow tractorcow merged commit 7d05c50 into silverstripe:4.1 Mar 29, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants