Skip to content

Commit 1e5836f

Browse files
committed
ACP2E-2198: added unit test
1 parent 79728d0 commit 1e5836f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/internal/Magento/Framework/App/Test/Unit/DeploymentConfigTest.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,15 @@ public function testEnvVariablesSubstitution(): void
306306
* @throws FileSystemException
307307
* @throws RuntimeException
308308
*/
309-
public function testReloadDataOnMissingConfig(): void {
310-
$this->readerMock->expects($this->exactly(2))->method('load')->willReturnOnConsecutiveCalls(['db' => ['connection' => ['default' => ['host' => 'localhost']]]], [], []);
309+
public function testReloadDataOnMissingConfig(): void
310+
{
311+
$this->readerMock->expects($this->exactly(2))
312+
->method('load')
313+
->willReturnOnConsecutiveCalls(
314+
['db' => ['connection' => ['default' => ['host' => 'localhost']]]],
315+
[],
316+
[]
317+
);
311318
$connectionConfig1 = $this->deploymentConfig->get(
312319
ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTIONS . '/' . 'default'
313320
);

0 commit comments

Comments
 (0)