[wp-trac] [WordPress Trac] #43863: Fix broken check in testcase class to prevent multisite-only or single site-only tests from being executed
WordPress Trac
noreply at wordpress.org
Wed Apr 25 22:37:10 UTC 2018
#43863: Fix broken check in testcase class to prevent multisite-only or single
site-only tests from being executed
------------------------------+------------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: multisite
------------------------------+------------------------
Changes (by flixos90):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"43005" 43005]:
{{{
#!CommitTicketReference repository="" revision="43005"
Tests: Skip multisite-only or single site-only tests correctly based on
test doc annotations.
Without the `ms-required` and `ms-excluded` groups being marked as
excluded in the PHPUnit configurations for the project, those groups were
still executed, causing fatal errors. Checking against the groups in the
correct structure of the array returned from PHPUnit's
`Testcase::getAnnotations()` ensures that those tests are skipped
properly.
Fixes #43863.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43863#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list