From eea156af1dccecb3d78d871141740f8702995e33 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Sat, 22 Aug 2020 09:41:46 +0200
Subject: [PATCH] Fix invalid @covers tags
---
.../tests/comment/isAvatarCommentType.php | 2 +-
.../tests/functions/cleanupHeaderComment.php | 2 +-
tests/phpunit/tests/functions/doEnclose.php | 2 +-
.../tests/functions/wpArraySliceAssoc.php | 2 +-
.../tests/link/getThePrivacyPolicyLink.php | 2 +-
tests/phpunit/tests/menu/nav-menu.php | 18 +++++++++---------
.../privacy/wpPrivacyCompletedRequest.php | 2 +-
.../wpPrivacySendPersonalDataExportEmail.php | 2 +-
...vacySendRequestConfirmationNotification.php | 2 +-
.../phpunit/tests/url/getPrivacyPolicyUrl.php | 2 +-
tests/phpunit/tests/user/wpSendUserRequest.php | 2 +-
11 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/tests/phpunit/tests/comment/isAvatarCommentType.php b/tests/phpunit/tests/comment/isAvatarCommentType.php
index b01e019315..fe7e7482d3 100644
a
|
b
|
|
11 | 11 | * Tests_Comment_IsAvatarCommentType class. |
12 | 12 | * |
13 | 13 | * @group comment |
14 | | * @covers is_avatar_comment_type |
| 14 | * @covers ::is_avatar_comment_type |
15 | 15 | * |
16 | 16 | * @since 5.1.0 |
17 | 17 | */ |
diff --git a/tests/phpunit/tests/functions/cleanupHeaderComment.php b/tests/phpunit/tests/functions/cleanupHeaderComment.php
index bf79b65d4c..9bc0d73cd5 100644
a
|
b
|
class Tests_Functions_CleanupHeaderComment extends WP_UnitTestCase { |
10 | 10 | /** |
11 | 11 | * Test cleanup header of header comment. |
12 | 12 | * |
13 | | * @covers _cleanup_header_comment |
| 13 | * @covers ::_cleanup_header_comment |
14 | 14 | * @dataProvider data_cleanup_header_comment |
15 | 15 | * |
16 | 16 | * @param string $test_string |
diff --git a/tests/phpunit/tests/functions/doEnclose.php b/tests/phpunit/tests/functions/doEnclose.php
index c994ea360c..720eb8c728 100644
a
|
b
|
|
12 | 12 | * |
13 | 13 | * @group functions.php |
14 | 14 | * @group post |
15 | | * @covers do_enclose |
| 15 | * @covers ::do_enclose |
16 | 16 | * |
17 | 17 | * @since 5.3.0 |
18 | 18 | */ |
diff --git a/tests/phpunit/tests/functions/wpArraySliceAssoc.php b/tests/phpunit/tests/functions/wpArraySliceAssoc.php
index bedf731771..98afc785c9 100644
a
|
b
|
|
5 | 5 | * |
6 | 6 | * @since 5.3.0 |
7 | 7 | * |
8 | | * @covers wp_array_slice_assoc |
| 8 | * @covers ::wp_array_slice_assoc |
9 | 9 | * @group functions.php |
10 | 10 | */ |
11 | 11 | class Tests_Functions_wpArraySliceAssoc extends WP_UnitTestCase { |
diff --git a/tests/phpunit/tests/link/getThePrivacyPolicyLink.php b/tests/phpunit/tests/link/getThePrivacyPolicyLink.php
index 3543868831..15f6e6ccbe 100644
a
|
b
|
|
12 | 12 | * |
13 | 13 | * @group link |
14 | 14 | * @group privacy |
15 | | * @covers get_the_privacy_policy_link |
| 15 | * @covers ::get_the_privacy_policy_link |
16 | 16 | * |
17 | 17 | * @since 4.9.6 |
18 | 18 | */ |
diff --git a/tests/phpunit/tests/menu/nav-menu.php b/tests/phpunit/tests/menu/nav-menu.php
index af67f98379..39e9ed4924 100644
a
|
b
|
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
31 | 31 | /** |
32 | 32 | * Two themes with one location each should just map, switching to a theme not previously-active. |
33 | 33 | * |
34 | | * @covers ::wp_map_nav_menu_locations() |
| 34 | * @covers ::wp_map_nav_menu_locations |
35 | 35 | */ |
36 | 36 | function test_one_location_each() { |
37 | 37 | $this->register_nav_menu_locations( array( 'primary' ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
50 | 50 | /** |
51 | 51 | * Only registered locations should be mapped and returned. |
52 | 52 | * |
53 | | * @covers ::wp_map_nav_menu_locations() |
| 53 | * @covers ::wp_map_nav_menu_locations |
54 | 54 | */ |
55 | 55 | function test_filter_registered_locations() { |
56 | 56 | $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
72 | 72 | /** |
73 | 73 | * Locations with the same name should map, switching to a theme not previously-active. |
74 | 74 | * |
75 | | * @covers ::wp_map_nav_menu_locations() |
| 75 | * @covers ::wp_map_nav_menu_locations |
76 | 76 | */ |
77 | 77 | function test_locations_with_same_slug() { |
78 | 78 | $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
91 | 91 | /** |
92 | 92 | * If the new theme was previously active, we should honor any changes to nav menu mapping done when the other theme was active. |
93 | 93 | * |
94 | | * @covers ::wp_map_nav_menu_locations() |
| 94 | * @covers ::wp_map_nav_menu_locations |
95 | 95 | */ |
96 | 96 | function test_new_theme_previously_active() { |
97 | 97 | $this->register_nav_menu_locations( array( 'primary' ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
115 | 115 | /** |
116 | 116 | * Make educated guesses on theme locations. |
117 | 117 | * |
118 | | * @covers ::wp_map_nav_menu_locations() |
| 118 | * @covers ::wp_map_nav_menu_locations |
119 | 119 | */ |
120 | 120 | function test_location_guessing() { |
121 | 121 | $this->register_nav_menu_locations( array( 'primary', 'secondary' ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
138 | 138 | /** |
139 | 139 | * Make sure two locations that fall in the same group don't get the same menu assigned. |
140 | 140 | * |
141 | | * @covers ::wp_map_nav_menu_locations() |
| 141 | * @covers ::wp_map_nav_menu_locations |
142 | 142 | */ |
143 | 143 | function test_location_guessing_one_menu_per_group() { |
144 | 144 | $this->register_nav_menu_locations( array( 'primary' ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
159 | 159 | /** |
160 | 160 | * Make sure two locations that fall in the same group get menus assigned from the same group. |
161 | 161 | * |
162 | | * @covers ::wp_map_nav_menu_locations() |
| 162 | * @covers ::wp_map_nav_menu_locations |
163 | 163 | */ |
164 | 164 | function test_location_guessing_one_menu_per_location() { |
165 | 165 | $this->register_nav_menu_locations( array( 'primary', 'main' ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
184 | 184 | * |
185 | 185 | * @expectedIncorrectUsage register_nav_menus |
186 | 186 | * |
187 | | * @covers ::wp_map_nav_menu_locations() |
| 187 | * @covers ::wp_map_nav_menu_locations |
188 | 188 | */ |
189 | 189 | function test_numerical_locations() { |
190 | 190 | $this->register_nav_menu_locations( array( 'primary', 1 ) ); |
… |
… |
class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase { |
209 | 209 | * |
210 | 210 | * @expectedIncorrectUsage register_nav_menus |
211 | 211 | * |
212 | | * @covers wp_map_nav_menu_locations() |
| 212 | * @covers ::wp_map_nav_menu_locations |
213 | 213 | */ |
214 | 214 | public function test_numerical_old_locations() { |
215 | 215 | $this->register_nav_menu_locations( array( 'primary', 1 ) ); |
diff --git a/tests/phpunit/tests/privacy/wpPrivacyCompletedRequest.php b/tests/phpunit/tests/privacy/wpPrivacyCompletedRequest.php
index 71884dc7d8..b3d45a9c89 100644
a
|
b
|
|
11 | 11 | * Tests_WpPrivacyCompletedRequest class. |
12 | 12 | * |
13 | 13 | * @group privacy |
14 | | * @covers _wp_privacy_completed_request |
| 14 | * @covers ::_wp_privacy_completed_request |
15 | 15 | * |
16 | 16 | * @since 4.9.6 |
17 | 17 | */ |
diff --git a/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php b/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php
index 010a01434a..54c775ae49 100644
a
|
b
|
|
11 | 11 | * Tests_Privacy_WpPrivacySendPersonalDataExportEmail class. |
12 | 12 | * |
13 | 13 | * @group privacy |
14 | | * @covers wp_privacy_send_personal_data_export_email |
| 14 | * @covers ::wp_privacy_send_personal_data_export_email |
15 | 15 | * |
16 | 16 | * @since 4.9.6 |
17 | 17 | */ |
diff --git a/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php b/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php
index ce76fa2f43..5cce5cc02d 100644
a
|
b
|
|
12 | 12 | * |
13 | 13 | * @group privacy |
14 | 14 | * @group user |
15 | | * @covers _wp_privacy_send_request_confirmation_notification() |
| 15 | * @covers ::_wp_privacy_send_request_confirmation_notification |
16 | 16 | */ |
17 | 17 | class Tests_User_WpPrivacySendRequestConfirmationNotification extends WP_UnitTestCase { |
18 | 18 | /** |
diff --git a/tests/phpunit/tests/url/getPrivacyPolicyUrl.php b/tests/phpunit/tests/url/getPrivacyPolicyUrl.php
index 69384702da..67d10a6a3d 100644
a
|
b
|
|
12 | 12 | * |
13 | 13 | * @group url |
14 | 14 | * @group privacy |
15 | | * @covers get_privacy_policy_url |
| 15 | * @covers ::get_privacy_policy_url |
16 | 16 | * |
17 | 17 | * @since 4.9.6 |
18 | 18 | */ |
diff --git a/tests/phpunit/tests/user/wpSendUserRequest.php b/tests/phpunit/tests/user/wpSendUserRequest.php
index 68795cd93a..bbc02ea98d 100644
a
|
b
|
|
13 | 13 | * |
14 | 14 | * @group privacy |
15 | 15 | * @group user |
16 | | * @covers wp_send_user_request |
| 16 | * @covers ::wp_send_user_request |
17 | 17 | */ |
18 | 18 | class Tests_User_WpSendUserRequest extends WP_UnitTestCase { |
19 | 19 | |