Feature::
registerFeatures($this->featureConfigBackup
);
} public function testAllFeatureFlagsAreActivated(): void
{ $_SERVER['V6_5_0_0'
] = false;
$this->extension->
executeBeforeTest(__METHOD__
);
static::
assertTrue(Feature::
isActive('v6.5.0.0'
));
$this->extension->
executeAfterTest(__METHOD__, 0.1
);
static::
assertArrayHasKey('V6_5_0_0',
$_SERVER);
static::
assertFalse($_SERVER['V6_5_0_0'
]);
} public function testIsDoesNotAffectNonPureUnitTests(): void
{ $testMethod = '\Shopware\Tests\Integration\Core\BasicOrderProductTest::testBasicOrderFlow';
$featureFlagConfig = Feature::
getRegisteredFeatures();
$server =
$_SERVER;