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

Do not load/apply local DI config in tests #13182

Merged
merged 1 commit into from Jul 19, 2018
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jul 19, 2018

I often have tests failing because I have in my local config/config.php a DI value overwritten which is set in plugins/*/config/test.php or plugins/*/config/config.php for example. I was thinking a quick fix by to ignore the local config file when executing tests which is I presume similar to what we do with the config ini file?

Any thoughts @diosmosis ?

Will need to see if tests still pass but I would expect so.

I often have tests failing because I have in my local `config/config.php` a DI value overwritten which is set in `plugins/*/config/test.php` or `plugins/*/config/config.php` for example. I was thinking a quick fix by to ignore the local config file when executing tests which is I presume similar to what we do with the config ini file?
@tsteur tsteur added the Needs Review PRs that need a code review label Jul 19, 2018
@diosmosis
Copy link
Member

Makes sense to me, tests should control the environment they run in.

@diosmosis diosmosis merged commit 5fe27fd into 3.x-dev Jul 19, 2018
@sgiehl sgiehl deleted the nolocalconfigphpintests branch August 9, 2018 09:36
@mattab mattab added the c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. label Aug 28, 2018
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants