wordpress-develop/tests/phpunit/tests/rewrite
Sergey Biryukov e14d94858f Tests: Improve the test for not throwing a warning on malformed date queries.
* Make it specifically about `wp_resolve_numeric_slug_conflicts()`, the function that was throwing an `Undefined array key "year"` PHP warning for malformed date requests.
* Move the test under the `rewrite` component and make its name a bit more descriptive.
* Check the return result of the function instead of performing a dummy assertion.
* Use named array keys in the data provider for clarity.
* Add missing `@covers` tag.

Follow-up to [32648], [53857].

Props costdev, peterwilsoncc, 1naveengiri, mukesh27, SergeyBiryukov.
See #52252, #45513.

git-svn-id: https://develop.svn.wordpress.org/trunk@53861 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-08 14:38:08 +00:00
..
addRewriteEndpoint.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
addRewriteRule.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
numericSlugs.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
oldDateRedirect.php Posts, Post Types: Add caching to _find_post_by_old_slug and _find_post_by_old_date functions. 2022-06-21 13:32:48 +00:00
oldSlugRedirect.php Posts, Post Types: Add caching to _find_post_by_old_slug and _find_post_by_old_date functions. 2022-06-21 13:32:48 +00:00
permastructs.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rewriteTags.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpResolveNumericSlugConflicts.php Tests: Improve the test for not throwing a warning on malformed date queries. 2022-08-08 14:38:08 +00:00