Tests: Clean up some existing @covers tags.

The `()` at the end is unnecessary and disregarded by PHPUnit, so can be removed.

Props jrf.
See #39265.

git-svn-id: https://develop.svn.wordpress.org/trunk@48858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-08-25 00:57:17 +00:00
parent 25c9718a1e
commit c20372e0aa
22 changed files with 191 additions and 191 deletions
+11 -11
View File
@@ -740,7 +740,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Tests for when 'sidebars_widgets' theme mod is populated.
*
* @covers ::retrieve_widgets()
* @covers ::retrieve_widgets
*/
function test_retrieve_widgets_with_theme_mod() {
global $sidebars_widgets, $_wp_sidebars_widgets;
@@ -804,7 +804,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Tests for when sidebars widgets matches registered sidebars.
*
* @covers ::retrieve_widgets()
* @covers ::retrieve_widgets
*/
function test_retrieve_widgets_with_sidebars_widgets_matching_registered_sidebars() {
global $sidebars_widgets;
@@ -842,7 +842,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Tests for when sidebars widgets doesn't match registered sidebars.
*
* @covers ::retrieve_widgets()
* @covers ::retrieve_widgets
*/
function test_retrieve_widgets_with_sidebars_widgets_not_matching_registered_sidebars() {
global $sidebars_widgets, $_wp_sidebars_widgets;
@@ -936,7 +936,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Tests for Customizer mode.
*
* @covers ::retrieve_widgets()
* @covers ::retrieve_widgets
*/
function test_retrieve_widgets_for_customizer() {
global $sidebars_widgets, $_wp_sidebars_widgets;
@@ -1008,7 +1008,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Tests for orphaned widgets being moved into inactive widgets.
*
* @covers ::retrieve_widgets()
* @covers ::retrieve_widgets
*/
function test_retrieve_widgets_move_orphaned_widgets_to_inactive() {
global $sidebars_widgets;
@@ -1043,7 +1043,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Test _wp_remove_unregistered_widgets.
*
* @covers ::_wp_remove_unregistered_widgets()
* @covers ::_wp_remove_unregistered_widgets
*/
public function test__wp_remove_unregistered_widgets() {
$widgets = array(
@@ -1073,7 +1073,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Two themes with one sidebar each should just map, switching to a theme not previously-active.
*
* @covers ::wp_map_sidebars_widgets()
* @covers ::wp_map_sidebars_widgets
*/
public function test_one_sidebar_each() {
$this->register_sidebars( array( 'primary' ) );
@@ -1093,7 +1093,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Sidebars with the same name should map, switching to a theme not previously-active.
*
* @covers ::wp_map_sidebars_widgets()
* @covers ::wp_map_sidebars_widgets
*/
public function test_sidebars_with_same_slug() {
$this->register_sidebars( array( 'primary', 'secondary' ) );
@@ -1111,7 +1111,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Make educated guesses on theme sidebars.
*
* @covers ::wp_map_sidebars_widgets()
* @covers ::wp_map_sidebars_widgets
*/
public function test_sidebar_guessing() {
$this->register_sidebars( array( 'primary', 'secondary' ) );
@@ -1134,7 +1134,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Make sure two sidebars that fall in the same group don't get the same menu assigned.
*
* @covers ::wp_map_sidebars_widgets()
* @covers ::wp_map_sidebars_widgets
*/
public function test_sidebar_guessing_one_menu_per_group() {
$this->register_sidebars( array( 'primary' ) );
@@ -1155,7 +1155,7 @@ class Tests_Widgets extends WP_UnitTestCase {
/**
* Make sure two sidebars that fall in the same group get menus assigned from the same group.
*
* @covers ::wp_map_sidebars_widgets()
* @covers ::wp_map_sidebars_widgets
*/
public function test_sidebar_guessing_one_menu_per_sidebar() {
$this->register_sidebars( array( 'primary', 'main' ) );