Tag Processor: Merge independent tests into single file #45762
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Replaces #44593
Merges the PHP unit test files for the Tag Processor into a single file. In #44593 things got tricky in the merge and this patch is a recreation of the same intent.
The Tag Processor unit tests started as isolated and fast unit tests which led to following PHPUnit standards and an independence from WordPress itself. Once we adopted the WordPress standard we had to adjust the tests to fall out of line with the PHPUnit standards and we had to start integrating the tests with WordPress core to handle things like attribute escaping.
There should be no new or missing tests in this patch, but all tests which were formerly in separate files and places should now be in one file.
Why?
We made a mistake and at some point introduced four test files and now we need to bring that back to a single file, or at least get rid of the files we don't want.
How?
Merging files by comparing what's in one and not another.
Testing?
This patch changes test code. We should verify that we're not removing a test that isn't in the new single test file. We should also ensure that the tests pass. We should also ensure that no new tests are introduced during this merge.