Transform any configuration plain array into a dynamic and configurable object structure, and pull apart configuration handling from the main logic of your script. Use provided services to add more functionality to your objects: cache, parents, persistence and much more.
GNU General Public License v3.0
6
stars
4
forks
source link
[TASK] Allow `CacheService` usage in external unit tests #1
Coverage decreased (-0.1%) to 95.77% when pulling 8e84ee7d4ed7e64963b417b0b681d55e678aa110 on allow-external-unit-tests-with-cache-service into a4db1b3f2b4756abbc89a00a4812f55451ce9a36 on master.
Currently, using a configuration object which attached the cache service inside a unit test would cause a fatal error.
This PR fixes this issue.
Some refactoring had to be done in order to mock correctly the classes.