Revert "Add WooCommerce Subscriptions tests to $allowedToSkipList list"

This reverts commit 6b4d2409cc.
This commit is contained in:
Rodrigo Primo
2022-11-03 12:00:21 -03:00
parent 6dfeb7a100
commit bffafdcd33

View File

@@ -15,12 +15,7 @@ class CheckSkippedTestsExtension extends Extension {
$testName = $event->getTest()->getMetadata()->getName();
// list of tests that are allowed to be skipped on trunk and release branches
$allowedToSkipList = [
'createSubscriptionSegmentForActiveSubscriptions',
'testAllSubscribersFoundWithOperatorAny',
'testAllSubscribersFoundWithOperatorNoneOf',
'testAllSubscribersFoundWithOperatorAllOf',
];
$allowedToSkipList = ['createSubscriptionSegmentForActiveSubscriptions'];
if (in_array($branch, ['trunk', 'release']) && !in_array($testName, $allowedToSkipList)) {
throw new \PHPUnit\Framework\ExpectationFailedException("Failed, cannot skip tests on branch $branch.");