Make WordPress Core


Ignore:
Timestamp:
05/01/2017 08:34:10 PM (8 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/countUsers.php

    r40560 r40564  
    1313     */
    1414    public function test_count_users_is_accurate( $strategy ) {
    15         $this->skipWithMultisite();
    16 
    1715        // Setup users
    1816        $admin = self::factory()->user->create( array(
     
    6159     */
    6260    public function test_count_users_multisite_is_accurate( $strategy ) {
    63         $this->skipWithoutMultisite();
    64 
    6561        // Setup users
    6662        $admin = self::factory()->user->create( array(
Note: See TracChangeset for help on using the changeset viewer.