Skip to content

Commit

Permalink
chore: use standard feature flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfs7 committed Sep 16, 2024
1 parent db8b62f commit 7988cab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(

public function modify(tao_helpers_form_Form $form, array $options = []): void
{
if (!$this->featureFlagChecker->isEnabled('FEATURE_TRANSLATION_ENABLED')) {
if (!$this->featureFlagChecker->isEnabled('FEATURE_FLAG_TRANSLATION_ENABLED')) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(

public function populateTranslationProperties(TestCreatedEvent $event): void
{
if (!$this->featureFlagChecker->isEnabled('FEATURE_TRANSLATION_ENABLED')) {
if (!$this->featureFlagChecker->isEnabled('FEATURE_FLAG_TRANSLATION_ENABLED')) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function testModifyTranslationDisabled(): void
$this->featureFlagChecker
->expects($this->once())
->method('isEnabled')
->with('FEATURE_TRANSLATION_ENABLED')
->with('FEATURE_FLAG_TRANSLATION_ENABLED')
->willReturn(false);

$this->form
Expand All @@ -99,7 +99,7 @@ public function testModifyTranslationEnabledButValueSet(): void
$this->featureFlagChecker
->expects($this->once())
->method('isEnabled')
->with('FEATURE_TRANSLATION_ENABLED')
->with('FEATURE_FLAG_TRANSLATION_ENABLED')
->willReturn(true);

$this->form
Expand Down Expand Up @@ -128,7 +128,7 @@ public function testModifyTranslationEnabledButNoIdentifier(): void
$this->featureFlagChecker
->expects($this->once())
->method('isEnabled')
->with('FEATURE_TRANSLATION_ENABLED')
->with('FEATURE_FLAG_TRANSLATION_ENABLED')
->willReturn(true);

$this->form
Expand Down Expand Up @@ -166,7 +166,7 @@ public function testModify(): void
$this->featureFlagChecker
->expects($this->once())
->method('isEnabled')
->with('FEATURE_TRANSLATION_ENABLED')
->with('FEATURE_FLAG_TRANSLATION_ENABLED')
->willReturn(true);

$this->form
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function testPopulateTranslationPropertiesTranslationDisabled(): void
$this->featureFlagChecker
->expects($this->once())
->method('isEnabled')
->with('FEATURE_TRANSLATION_ENABLED')
->with('FEATURE_FLAG_TRANSLATION_ENABLED')
->willReturn(false);

$this->ontology
Expand All @@ -110,7 +110,7 @@ public function testPopulateTranslationProperties(): void
$this->featureFlagChecker
->expects($this->once())
->method('isEnabled')
->with('FEATURE_TRANSLATION_ENABLED')
->with('FEATURE_FLAG_TRANSLATION_ENABLED')
->willReturn(true);

$this->ontology
Expand Down Expand Up @@ -159,7 +159,7 @@ public function testPopulateTranslationPropertiesValueSet(): void
$this->featureFlagChecker
->expects($this->once())
->method('isEnabled')
->with('FEATURE_TRANSLATION_ENABLED')
->with('FEATURE_FLAG_TRANSLATION_ENABLED')
->willReturn(true);

$this->ontology
Expand Down

0 comments on commit 7988cab

Please sign in to comment.