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

    r40543 r40564  
    128128     */
    129129    public function test_numeric_string_user_id() {
    130         $this->skipWithMultisite();
    131 
    132130        $u = self::factory()->user->create();
    133131
     
    149147     */
    150148    public function test_should_return_false_for_object_user_id() {
    151         $this->skipWithMultisite();
    152 
    153149        $u_obj = self::factory()->user->create_and_get();
    154150        $this->assertFalse( wp_delete_user( $u_obj ) );
Note: See TracChangeset for help on using the changeset viewer.