Make WordPress Core

Changeset 53682


Ignore:
Timestamp:
07/07/2022 10:43:37 PM (2 years ago)
Author:
azaozz
Message:

Build/Test Tools: Add @covers tags to the url test group.

Props pbeane, hellofromTonya, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev.
See #39265.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/url.php

    r52010 r53682  
    1515    /**
    1616     * @dataProvider data_is_ssl
     17     *
     18     * @covers ::is_ssl
    1719     */
    1820    public function test_is_ssl( $value, $expected ) {
     
    4850    }
    4951
     52    /**
     53     * @covers ::is_ssl
     54     */
    5055    public function test_is_ssl_by_port() {
    5156        unset( $_SERVER['HTTPS'] );
     
    5661    }
    5762
     63    /**
     64     * @covers ::is_ssl
     65     */
    5866    public function test_is_ssl_with_no_value() {
    5967        unset( $_SERVER['HTTPS'] );
     
    6876     * @param string $url      Test URL.
    6977     * @param string $expected Expected result.
     78     *
     79     * @covers ::admin_url
    7080     */
    7181    public function test_admin_url( $url, $expected ) {
     
    136146     * @param string $url      Test URL.
    137147     * @param string $expected Expected result.
     148     *
     149     * @covers ::home_url
    138150     */
    139151    public function test_home_url( $url, $expected ) {
     
    199211    }
    200212
     213    /**
     214     * @covers ::home_url
     215     *
     216     * @uses ::get_option
     217     */
    201218    public function test_home_url_from_admin() {
    202219        // Pretend to be in the site admin.
     
    244261    }
    245262
     263    /**
     264     * @covers ::network_home_url
     265     */
    246266    public function test_network_home_url_from_admin() {
    247267        // Pretend to be in the site admin.
     
    265285    }
    266286
     287    /**
     288     * @covers ::set_url_scheme
     289     */
    267290    public function test_set_url_scheme() {
    268291        $links = array(
     
    325348    }
    326349
     350    /**
     351     * @covers ::get_adjacent_post
     352     */
    327353    public function test_get_adjacent_post() {
    328354        $now      = time();
     
    359385     *
    360386     * @ticket 30287
     387     *
     388     * @covers ::get_adjacent_post
    361389     */
    362390    public function test_get_adjacent_post_should_return_private_posts_belonging_to_the_current_user() {
     
    396424    /**
    397425     * @ticket 30287
     426     *
     427     * @covers ::get_adjacent_post
    398428     */
    399429    public function test_get_adjacent_post_should_return_private_posts_belonging_to_other_users_if_the_current_user_can_read_private_posts() {
     
    434464    /**
    435465     * @ticket 30287
     466     *
     467     * @covers ::get_adjacent_post
    436468     */
    437469    public function test_get_adjacent_post_should_not_return_private_posts_belonging_to_other_users_if_the_current_user_cannot_read_private_posts() {
     
    480512     *
    481513     * @ticket 19032
     514     *
     515     * @covers ::site_url
     516     * @covers ::home_url
     517     * @covers ::admin_url
     518     * @covers ::network_admin_url
     519     * @covers ::user_admin_url
     520     * @covers ::includes_url
     521     * @covers ::network_site_url
     522     * @covers ::network_home_url
     523     * @covers ::content_url
     524     * @covers ::plugins_url
    482525     */
    483526    public function test_url_functions_for_dots_in_paths() {
  • trunk/tests/phpunit/tests/url/getPrivacyPolicyUrl.php

    r53681 r53682  
    1313 * @group url
    1414 * @group privacy
    15  * @covers ::get_privacy_policy_url
    1615 *
    1716 * @since 4.9.6
     17 *
     18 * @covers ::get_privacy_policy_url
    1819 */
    1920class Tests_Url_GetPrivacyPolicyUrl extends WP_UnitTestCase {
     
    5758    /**
    5859     * The function should return the privacy policy URL when `wp_page_for_privacy_policy` is set.
     60     *
     61     * @uses ::get_permalink
    5962     */
    6063    public function test_get_privacy_policy_url_should_return_valid_url_when_policy_page_set() {
Note: See TracChangeset for help on using the changeset viewer.