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

    r40543 r40564  
    1010     */
    1111    function test_wp_authenticate_spam_check_returns_user_when_single_site() {
    12         $this->skipWithMultisite();
    13 
    1412        $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    1513        $user = new WP_User( $user_id );
     
    2422     */
    2523    function test_wp_authenticate_spam_check_returns_user_when_not_flagged() {
    26         $this->skipWithoutMultisite();
    27 
    2824        $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    2925        $user = new WP_User( $user_id );
     
    3834     */
    3935    function test_wp_authenticate_spam_check_returns_wp_error_when_flagged() {
    40         $this->skipWithoutMultisite();
    41 
    4236        $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    4337        update_user_status( $user_id, 'spam', 1 );
Note: See TracChangeset for help on using the changeset viewer.