private array
$featureConfigBackup;
private FeatureFlagExtension
$extension;
protected function setUp(): void
{ $this->serverVarsBackup =
$_SERVER;
$this->envVarsBackup =
$_ENV;
$this->featureConfigBackup = Feature::
getRegisteredFeatures();
$this->extension =
new FeatureFlagExtension('Shopware\\Tests\\Unit\\', true
);
} protected function tearDown(): void
{ $_SERVER =
$this->serverVarsBackup;
$_ENV =
$this->envVarsBackup;
Feature::
resetRegisteredFeatures();
Feature::
registerFeatures($this->featureConfigBackup
);
} public function testAllFeatureFlagsAreActivated(): void
{