Tests: Add missing @covers tags for files in phpunit/tests/link/.

Props sephsekla, jrf.
See #39265.

git-svn-id: https://develop.svn.wordpress.org/trunk@50454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-02-28 17:09:39 +00:00
parent ca49eb764b
commit 9fd3f595b1
6 changed files with 23 additions and 1 deletions

View File

@ -2,6 +2,9 @@
/**
* @group link
* @covers ::get_adjacent_post_link
* @covers ::get_next_post_link
* @covers ::get_previous_post_link
*/
class Tests_Link_GetAdjacentPostLink extends WP_UnitTestCase {

View File

@ -2,6 +2,7 @@
/**
* @group link
* @covers ::get_dashboard_url
*/
class Tests_Link_GetDashboardUrl extends WP_UnitTestCase {
public static $user_id = false;

View File

@ -1,6 +1,7 @@
<?php
/**
* @group link
* @covers ::get_post_comments_feed_link
*/
class Tests_Link_GetPostCommentsFeedLink extends WP_UnitTestCase {

View File

@ -1,6 +1,7 @@
<?php
/**
* @group link
* @covers ::get_post_type_archive_link
*/
class Tests_Link_GetPostTypeArchiveLink extends WP_UnitTestCase {

View File

@ -2,8 +2,9 @@
/**
* @group link
* @covers ::self_admin_url
*/
class Tests_Link_AdminUrl extends WP_UnitTestCase {
class Tests_Link_SelfAdminUrl extends WP_UnitTestCase {
/**
* @ticket 37446

View File

@ -45,6 +45,9 @@ class Tests_Link_ThemeFile extends WP_UnitTestCase {
* @ticket 18302
*
* @dataProvider data_theme_files
*
* @covers ::get_theme_file_uri
* @covers ::get_parent_theme_file_uri
*/
public function test_theme_file_uri_with_parent_theme( $file, $expected_theme, $existence ) {
switch_theme( 'theme-file-parent' );
@ -58,6 +61,9 @@ class Tests_Link_ThemeFile extends WP_UnitTestCase {
* @ticket 18302
*
* @dataProvider data_theme_files
*
* @covers ::get_theme_file_uri
* @covers ::get_parent_theme_file_uri
*/
public function test_theme_file_uri_with_child_theme( $file, $expected_theme, $existence ) {
switch_theme( 'theme-file-child' );
@ -73,6 +79,9 @@ class Tests_Link_ThemeFile extends WP_UnitTestCase {
* @ticket 18302
*
* @dataProvider data_theme_files
*
* @covers ::get_theme_file_path
* @covers ::get_parent_theme_file_path
*/
public function test_theme_file_path_with_parent_theme( $file, $expected_theme, $existence ) {
switch_theme( 'theme-file-parent' );
@ -86,6 +95,9 @@ class Tests_Link_ThemeFile extends WP_UnitTestCase {
* @ticket 18302
*
* @dataProvider data_theme_files
*
* @covers ::get_theme_file_path
* @covers ::get_parent_theme_file_path
*/
public function test_theme_file_path_with_child_theme( $file, $expected_theme, $existence ) {
switch_theme( 'theme-file-child' );
@ -124,6 +136,9 @@ class Tests_Link_ThemeFile extends WP_UnitTestCase {
* @ticket 18302
*
* @dataProvider data_theme_files
*
* @covers ::get_theme_file_uri
* @covers ::get_parent_theme_file_uri
*/
public function test_theme_file_uri_returns_valid_uri( $file, $expected_theme, $existence ) {
$uri = get_theme_file_uri( $file );