Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Oct 25, 2023
1 parent 3142108 commit 61bbbca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/Config/BaseConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ public function testRedoingDiscoveryWillStillSetDidDiscoveryPropertyToTrue(): vo
$locator->method('search')->with('Config/Registrar.php')->willReturn([]);
Services::injectMock('locator', $locator);

$this->setPrivateProperty(RegistrarConfig::class, 'didDiscovery', false);

$config = new RegistrarConfig();
$this->setPrivateProperty($config, 'didDiscovery', false);
($this->getPrivateMethodInvoker($config, 'registerProperties'))();

$this->assertTrue($this->getPrivateProperty($config, 'didDiscovery'));
}
Expand Down

0 comments on commit 61bbbca

Please sign in to comment.