mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Tests: Simplify and correct get_term_link()
and get_edit_term_link()
tests:
* Some assertions were unnecessarily duplicated. They aim to test the function behavior both when passing a term ID and term object, however that is already handled via the `$use_id` parameter of the `get_term()` helper in the same test class. The data providers already supply test cases both with a term ID and term object, so there is no need for a second assertion or a whole second test method with a term object. * One `get_term_feed_link()` test was unnecessarily skipped half of the time, when term object was passed instead of term ID. Instead, it can use a dedicated data provider and avoid skipping. Includes: * Using more descriptive test method names to clarify the intention of the tests. * Some documentation updates for clarity. Follow-up to [52180], [52255], [52258], [52305], [53833], [53836]. See #55652. Built from https://develop.svn.wordpress.org/trunk@54061 git-svn-id: http://core.svn.wordpress.org/trunk@53620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f44ab3ab48
commit
ae709d1d31
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-54060';
|
||||
$wp_version = '6.1-alpha-54061';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user