Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: orca-services/cakephp-feature-flags
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.0
Choose a base ref
...
head repository: orca-services/cakephp-feature-flags
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cakephp-3.x
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 27, 2023

  1. Fix broken test

    terry.kern committed Jan 27, 2023
    Copy the full SHA
    af34d4a View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/TestCase/FeatureTest.php
4 changes: 2 additions & 2 deletions tests/TestCase/FeatureTest.php
Original file line number Diff line number Diff line change
@@ -29,12 +29,12 @@ public function testName()
$this->assertFalse($featureState->isEnabled());

// Test enabled feature flag
Configure::write('App.features.Foo', true);
Configure::write('Features.Foo', true);
$featureState = Feature::name('Foo');
$this->assertTrue($featureState->isEnabled());

// Test enabled feature flag
Configure::write('App.features.Foo', false);
Configure::write('Features.Foo', false);
$featureState = Feature::name('Foo');
$this->assertFalse($featureState->isEnabled());
}