mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-07 08:07:16 +00:00
Tests: Correct a number of malformed @covers tags.
As per the documentation of the `@covers` tag, global functions being covered should be prefixed with `::`. Also, the `()` after the function name is redundant. Follow-up to [39918]. Props jrf. See #50267. git-svn-id: https://develop.svn.wordpress.org/trunk@48848 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -31,7 +31,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
/**
|
||||
* Two themes with one location each should just map, switching to a theme not previously-active.
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_one_location_each() {
|
||||
$this->register_nav_menu_locations( array( 'primary' ) );
|
||||
@@ -50,7 +50,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
/**
|
||||
* Only registered locations should be mapped and returned.
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_filter_registered_locations() {
|
||||
$this->register_nav_menu_locations( array( 'primary', 'secondary' ) );
|
||||
@@ -72,7 +72,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
/**
|
||||
* Locations with the same name should map, switching to a theme not previously-active.
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_locations_with_same_slug() {
|
||||
$this->register_nav_menu_locations( array( 'primary', 'secondary' ) );
|
||||
@@ -91,7 +91,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
/**
|
||||
* If the new theme was previously active, we should honor any changes to nav menu mapping done when the other theme was active.
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_new_theme_previously_active() {
|
||||
$this->register_nav_menu_locations( array( 'primary' ) );
|
||||
@@ -115,7 +115,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
/**
|
||||
* Make educated guesses on theme locations.
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_location_guessing() {
|
||||
$this->register_nav_menu_locations( array( 'primary', 'secondary' ) );
|
||||
@@ -138,7 +138,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
/**
|
||||
* Make sure two locations that fall in the same group don't get the same menu assigned.
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_location_guessing_one_menu_per_group() {
|
||||
$this->register_nav_menu_locations( array( 'primary' ) );
|
||||
@@ -159,7 +159,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
/**
|
||||
* Make sure two locations that fall in the same group get menus assigned from the same group.
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_location_guessing_one_menu_per_location() {
|
||||
$this->register_nav_menu_locations( array( 'primary', 'main' ) );
|
||||
@@ -184,7 +184,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
*
|
||||
* @expectedIncorrectUsage register_nav_menus
|
||||
*
|
||||
* @covers ::wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
function test_numerical_locations() {
|
||||
$this->register_nav_menu_locations( array( 'primary', 1 ) );
|
||||
@@ -209,7 +209,7 @@ class Tests_Nav_Menu_Theme_Change extends WP_UnitTestCase {
|
||||
*
|
||||
* @expectedIncorrectUsage register_nav_menus
|
||||
*
|
||||
* @covers wp_map_nav_menu_locations()
|
||||
* @covers ::wp_map_nav_menu_locations
|
||||
*/
|
||||
public function test_numerical_old_locations() {
|
||||
$this->register_nav_menu_locations( array( 'primary', 1 ) );
|
||||
|
||||
Reference in New Issue
Block a user