WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/01/2017 08:34:10 PM (2 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Automatically skip tests in the ms-required and ms-excluded groups.

This removes the need to manually call $this->skipWithMultisite() and $this->skipWithoutMultisite() from within the test when the test only runs without Multisite or only runs on Multisite, respectively.

Props jdgrimes for the suggestion.

Fixes #40531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/wpGetUsersWithNoRole.php

    r40543 r40564  
    1111     */
    1212    public function test_get_users_with_no_role_is_accurate() {
    13         $this->skipWithMultisite();
    14 
    1513        // Setup users
    1614        $admin = self::factory()->user->create( array(
     
    4341     */
    4442    public function test_get_users_with_no_role_multisite_is_accurate() {
    45         $this->skipWithoutMultisite();
    46 
    4743        // Setup users
    4844        $admin = self::factory()->user->create( array(
Note: See TracChangeset for help on using the changeset viewer.