Skip to content

Commit 61bbbca

Browse files
committed
Simplify test
1 parent 3142108 commit 61bbbca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/Config/BaseConfigTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ public function testRedoingDiscoveryWillStillSetDidDiscoveryPropertyToTrue(): vo
290290
$locator->method('search')->with('Config/Registrar.php')->willReturn([]);
291291
Services::injectMock('locator', $locator);
292292

293+
$this->setPrivateProperty(RegistrarConfig::class, 'didDiscovery', false);
294+
293295
$config = new RegistrarConfig();
294-
$this->setPrivateProperty($config, 'didDiscovery', false);
295-
($this->getPrivateMethodInvoker($config, 'registerProperties'))();
296296

297297
$this->assertTrue($this->getPrivateProperty($config, 'didDiscovery'));
298298
}

0 commit comments

Comments
 (0)