Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Use more Dependency Injection to make unit testing easier #125

Open
eerotal opened this issue May 20, 2020 · 0 comments
Open

Use more Dependency Injection to make unit testing easier #125

eerotal opened this issue May 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@eerotal
Copy link
Owner

eerotal commented May 20, 2020

Some PHP classes and methods etc. should be rewritten to use more Dependency Injection to make unit testing easier in the codebase. Currently it's very hard to write good unit tests for some class methods that construct objects in the method itself. Some example methods with this problem are User::session_new() and Slide::store_uploaded_asset().

@eerotal eerotal added the enhancement New feature or request label May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant