For tests that have and use a DI container, allow test cases to be injected #8815
Labels
c: Tests & QA
For issues related to automated tests or making it easier to QA & test issues.
wontfix
If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone
Currently in tests that use a DI container, if we want to get an object from the container, it's necessary to find the Piwik Environment instance, and manually get and use the DI container. Instead of this work, however, we could make it possible to inject the test cases themselves w/ the objects to test.
For example, this:
would become:
Note: This would only affect integration & system test cases. The DI container should not be used in unit tests.
The text was updated successfully, but these errors were encountered: