Tests: Correct erroneous @covers and @use tags.

Props jipmoors.
Fixes #43203.

git-svn-id: https://develop.svn.wordpress.org/trunk@42636 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2018-02-01 16:08:04 +00:00
parent 07bff5d8bd
commit 59e1b7318d
9 changed files with 31 additions and 31 deletions
+11 -11
View File
@@ -723,7 +723,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;
@@ -786,7 +786,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;
@@ -824,7 +824,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;
@@ -918,7 +918,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;
@@ -990,7 +990,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;
@@ -1025,7 +1025,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(
@@ -1055,7 +1055,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' ) );
@@ -1075,7 +1075,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' ) );
@@ -1093,7 +1093,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' ) );
@@ -1116,7 +1116,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' ) );
@@ -1137,7 +1137,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' ) );