WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/22/2017 06:58:46 PM (2 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Introduce ms-required and ms-excluded groups for tests.

Tests in the ms-excluded group are now excluded when running tests with multisite enabled, and tests in the ms-required group are excluded when running tests without multisite enabled. The end result is a significantly reduced number of skipped tests polluting PHPUnit's output, which means verbose mode can be used to more easily see which tests are skipped or incomplete, and why.

See #40531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/general/template.php

    r38901 r40520  
    7373     * @group site_icon
    7474     * @group multisite
     75     * @group ms-required
    7576     */
    7677    function test_has_site_icon_returns_true_when_called_for_other_site_with_site_icon_set() {
     
    9091     * @group site_icon
    9192     * @group multisite
     93     * @group ms-required
    9294     */
    9395    function test_has_site_icon_returns_false_when_called_for_other_site_without_site_icon_set() {
     
    265267     * @group custom_logo
    266268     * @group multisite
     269     * @group ms-required
    267270     */
    268271    function test_has_custom_logo_returns_true_when_called_for_other_site_with_custom_logo_set() {
     
    282285     * @group custom_logo
    283286     * @group multisite
     287     * @group ms-required
    284288     */
    285289    function test_has_custom_logo_returns_false_when_called_for_other_site_without_custom_logo_set() {
     
    313317     * @group custom_logo
    314318     * @group multisite
     319     * @group ms-required
    315320     */
    316321    function test_get_custom_logo_returns_logo_when_called_for_other_site_with_custom_logo_set() {
     
    535540    /**
    536541     * @ticket 38253
     542     * @group ms-required
    537543     */
    538544    function test_get_site_icon_url_preserves_switched_state() {
     
    557563    /**
    558564     * @ticket 38253
     565     * @group ms-required
    559566     */
    560567    function test_has_custom_logo_preserves_switched_state() {
     
    579586    /**
    580587     * @ticket 38253
     588     * @group ms-required
    581589     */
    582590    function test_get_custom_logo_preserves_switched_state() {
Note: See TracChangeset for help on using the changeset viewer.