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/link/getDashboardUrl.php

    r40543 r40564  
    4242     */
    4343    public function test_get_dashboard_url_for_network_administrator_with_no_sites() {
    44         $this->skipWithoutMultisite();
    45 
    4644        grant_super_admin( self::$user_id );
    4745
     
    6159     */
    6260    public function test_get_dashboard_url_for_administrator_of_different_site() {
    63         $this->skipWithoutMultisite();
    64 
    6561        $site_id = self::factory()->blog->create( array( 'user_id' => self::$user_id ) );
    6662
Note: See TracChangeset for help on using the changeset viewer.