Docs: Fix typo in some get_edit_term_link() test DocBlocks.

Follow-up to [52180], [52255].

See #50225, #53399.

git-svn-id: https://develop.svn.wordpress.org/trunk@52305 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-12-02 05:39:57 +00:00
parent 5fa8d73b1b
commit 8bd1509ea8
3 changed files with 15 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ class Tests_Link_EditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
* @param string $expected Expected URL within admin of edit link.
*/
@@ -52,7 +52,7 @@ class Tests_Link_EditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_edit_term_link_for_denied_user( $taxonomy, $use_id ) {
@@ -68,7 +68,7 @@ class Tests_Link_EditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_edit_term_link_filter_is_int_by_term_id( $taxonomy, $use_id ) {
@@ -92,7 +92,7 @@ class Tests_Link_EditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_edit_term_link_filter_is_int_by_term_object( $taxonomy, $use_id ) {
@@ -165,7 +165,7 @@ class Tests_Link_EditTermLink extends WP_UnitTestCase {
*
* @since 5.9.0
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
* @return WP_Term|int If $use_id is true, term ID is returned; else instance of WP_Term.
*/

View File

@@ -31,7 +31,7 @@ class Tests_Link_GetEditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
* @param string $expected Expected URL within admin of edit link.
*/
@@ -52,7 +52,7 @@ class Tests_Link_GetEditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_get_edit_term_link_for_denied_user( $taxonomy, $use_id ) {
@@ -68,7 +68,7 @@ class Tests_Link_GetEditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_get_edit_term_link_filter_is_int_by_term_id( $taxonomy, $use_id ) {
@@ -92,7 +92,7 @@ class Tests_Link_GetEditTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_get_edit_term_link_filter_is_int_by_term_object( $taxonomy, $use_id ) {
@@ -165,7 +165,7 @@ class Tests_Link_GetEditTermLink extends WP_UnitTestCase {
*
* @since 5.9.0
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
* @return WP_Term|int If $use_id is true, term ID is returned; else instance of WP_Term.
*/

View File

@@ -224,7 +224,7 @@ class Tests_Term_GetTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_get_term_link_filter_is_object_by_term_id( $taxonomy, $use_id ) {
@@ -247,7 +247,7 @@ class Tests_Term_GetTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
*/
public function test_get_term_link_filter_is_object_by_term_object( $taxonomy, $use_id ) {
@@ -270,7 +270,7 @@ class Tests_Term_GetTermLink extends WP_UnitTestCase {
*
* @ticket 50225
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, skip the test.
*/
public function test_get_term_feed_link_backward_compatibility( $taxonomy, $use_id ) {
@@ -283,7 +283,7 @@ class Tests_Term_GetTermLink extends WP_UnitTestCase {
$term_feed_link = get_term_feed_link( $term, '' );
$this->assertIsString( $term_feed_link );
} else {
$this->markTestSkipped( 'This test requires to pass an id to get_term_feed_link()' );
$this->markTestSkipped( 'This test requires to pass an ID to get_term_feed_link()' );
}
}
@@ -336,7 +336,7 @@ class Tests_Term_GetTermLink extends WP_UnitTestCase {
*
* @since 5.9.0
*
* @param string $taxonomy Taxonomy been tested (used for index of term keys).
* @param string $taxonomy Taxonomy being tested (used for index of term keys).
* @param bool $use_id When true, pass term ID. Else, pass term object.
* @return WP_Term|int If $use_id is true, term ID is returned; else instance of WP_Term.
*/