Tests: Remove @uses tags from the test suite.

* These were not used consistently, with only four instances across all the tests.
* Using this tag in combination with the `beStrictAboutCoversAnnotation="true"` setting will mark a test as "Risky" if code is executed during the test which is not annotated via `@covers` or `@uses` tags. That would make the maintainance of the tags very fiddly, while adding little additional value for the test code base.

Follow-up to [32995], [39914], [42636], [53682].

Props jrf.
See #39265.

git-svn-id: https://develop.svn.wordpress.org/trunk@53687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-07-08 00:11:15 +00:00
parent 5880ac84cc
commit 4b22694e76
4 changed files with 0 additions and 8 deletions

View File

@ -544,8 +544,6 @@ line 2<br/>
* wpautop() should not add extra </p> before <figcaption>
*
* @ticket 39307
*
* @uses ::trim
*/
public function test_that_wpautop_does_not_add_extra_closing_p_in_figure() {
$content1 = '<figure><img src="example.jpg" /><figcaption>Caption</figcaption></figure>';

View File

@ -295,8 +295,6 @@ class Tests_WP_Generate_Tag_Cloud extends WP_UnitTestCase {
/**
* Helper method retrieve the created terms.
*
* @uses get_terms
*
* @param array $get_terms_args Options passed to get_terms()
*
* @return array

View File

@ -212,8 +212,6 @@ class Tests_URL extends WP_UnitTestCase {
/**
* @covers ::home_url
*
* @uses ::get_option
*/
public function test_home_url_from_admin() {
// Pretend to be in the site admin.

View File

@ -57,8 +57,6 @@ class Tests_Url_GetPrivacyPolicyUrl extends WP_UnitTestCase {
/**
* The function should return the privacy policy URL when `wp_page_for_privacy_policy` is set.
*
* @uses ::get_permalink
*/
public function test_get_privacy_policy_url_should_return_valid_url_when_policy_page_set() {
$privacy_policy_url = get_permalink( self::$privacy_policy_page_id );