Plugin Dependencies: Tests update#21
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @me@colin-stewart.co.uk. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core SVNIf you're a Core Committer, use this list when committing to GitHub Merge commitsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This PR adds many more tests to increase coverage.
It also includes simplification of some of the source, as well as some safeties such as not initializing properties to empty arrays when they can legitimately be that value after processing and
empty()checks will produce false positives/negatives.The source changes also helped to remove several branches that were unreachable by tests. The underlying logic is still tested though.