Make WordPress Core

Ticket #43863: 43863.diff

File 43863.diff, 984 bytes (added by flixos90, 7 years ago)
  • tests/phpunit/includes/testcase.php

     
    654654
    655655                $annotations = $this->getAnnotations();
    656656
    657                 if ( ! empty( $annotations['group'] ) ) {
    658                         if ( in_array( 'ms-required', $annotations['group'], true ) ) {
     657                $groups = array();
     658                if ( ! empty( $annotations['class']['group'] ) ) {
     659                        $groups = array_merge( $groups, $annotations['class']['group'] );
     660                }
     661                if ( ! empty( $annotations['method']['group'] ) ) {
     662                        $groups = array_merge( $groups, $annotations['method']['group'] );
     663                }
     664
     665                if ( ! empty( $groups ) ) {
     666                        if ( in_array( 'ms-required', $groups, true ) ) {
    659667                                $this->skipWithoutMultisite();
    660668                        }
    661                         if ( in_array( 'ms-excluded', $annotations['group'], true ) ) {
     669
     670                        if ( in_array( 'ms-excluded', $groups, true ) ) {
    662671                                $this->skipWithMultisite();
    663672                        }
    664673                }