mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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' ) );
|
||||
|
||||
Reference in New Issue
Block a user