diff --git a/src/Overriders/ConfigOverrider.php b/src/Overriders/ConfigOverrider.php index 0438d5c..1032d08 100644 --- a/src/Overriders/ConfigOverrider.php +++ b/src/Overriders/ConfigOverrider.php @@ -34,13 +34,13 @@ public function get(FeatureFlagEnum $key): bool */ public function hasAll(): bool { - return $this->config->has('feature-flags.overriders.config.override_all') - && $this->config->get('feature-flags.overriders.config.override_all') !== null; + return $this->config->has('feature-flags.overriders.config.override-all') + && $this->config->get('feature-flags.overriders.config.override-all') !== null; } public function getAll(): bool { - return (bool) $this->config->get('feature-flags.overriders.config.override_all'); + return (bool) $this->config->get('feature-flags.overriders.config.override-all'); } public function set(FeatureFlagEnum $key, bool|null $value): static @@ -52,7 +52,7 @@ public function set(FeatureFlagEnum $key, bool|null $value): static public function setAll(bool|null $value): static { - $this->config->set('feature-flags.overriders.config.override_all', $value); + $this->config->set('feature-flags.overriders.config.override-all', $value); return $this; } diff --git a/tests/Feature/ConfigOverriderTest.php b/tests/Feature/ConfigOverriderTest.php index 10a4427..9193a9b 100644 --- a/tests/Feature/ConfigOverriderTest.php +++ b/tests/Feature/ConfigOverriderTest.php @@ -111,10 +111,10 @@ null ]); -it('sets overriderAll value', function ($value) { +it('sets override-all value', function ($value) { $overrider = $this->app->make(ConfigOverrider::class); $overrider->setAll($value); - expect($this->configRepo->get('feature-flags.overriders.config.override_all'))->toBe($value); + expect($this->configRepo->get('feature-flags.overriders.config.override-all'))->toBe($value); })->with([ true, false,