Our tests are generally not very good and repeat code quite a bit. Let's fix this so we can release with confidence.
This looks like a lot of lines, but there's a good amount of fluff, documentation, and basic setup in here. The goal is to create a more automated test suite and increase the code coverage for all fields instead of just a few ones.
I have:
[x] Run WordPress VIP PHPCS check and code parses without errors
[x] Added any new PHPUnit tests
[x] Run PHPUnit and all tests are passing after adding any necessary new tests
[x] Tested feature/bugfix on single and multisite install
Our tests are generally not very good and repeat code quite a bit. Let's fix this so we can release with confidence.
This looks like a lot of lines, but there's a good amount of fluff, documentation, and basic setup in here. The goal is to create a more automated test suite and increase the code coverage for all fields instead of just a few ones.
I have: