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/adminbar.php

    r39948 r40520  
    7373    /**
    7474     * @ticket 25162
     75     * @group ms-excluded
    7576     */
    7677    public function test_admin_bar_contains_correct_links_for_users_with_no_role() {
     
    101102    /**
    102103     * @ticket 25162
     104     * @group ms-excluded
    103105     */
    104106    public function test_admin_bar_contains_correct_links_for_users_with_role() {
     
    132134     * @ticket 25162
    133135     * @group multisite
     136     * @group ms-required
    134137     */
    135138    public function test_admin_bar_contains_correct_links_for_users_with_no_role_on_blog() {
     
    182185     * @ticket 25162
    183186     * @group multisite
     187     * @group ms-required
    184188     */
    185189    public function test_admin_bar_contains_correct_links_for_users_with_no_role_on_network() {
     
    426430    /**
    427431     * @ticket 37949
     432     * @group ms-excluded
    428433     */
    429434    public function test_admin_bar_contains_correct_about_link_for_users_with_role() {
     
    446451    /**
    447452     * @ticket 37949
     453     * @group ms-excluded
    448454     */
    449455    public function test_admin_bar_contains_correct_about_link_for_users_with_no_role() {
     
    468474     * @ticket 37949
    469475     * @group multisite
     476     * @group ms-required
    470477     */
    471478    public function test_admin_bar_contains_correct_about_link_for_users_with_no_role_in_multisite() {
     
    587594    /**
    588595     * @ticket 39082
     596     * @group ms-required
    589597     */
    590598    public function test_my_sites_network_menu_for_regular_user() {
     
    605613    /**
    606614     * @ticket 39082
     615     * @group ms-required
    607616     */
    608617    public function test_my_sites_network_menu_for_super_admin() {
     
    625634    /**
    626635     * @ticket 39082
     636     * @group ms-required
    627637     */
    628638    public function test_my_sites_network_menu_for_regular_user_with_network_caps() {
Note: See TracChangeset for help on using the changeset viewer.