Skip to content

Commit 898d008

Browse files
committed
php unit test fixed
1 parent bee69b1 commit 898d008

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Test/Unit/Command/Wizard/MasterSlaveTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testExecute()
5555
$inputMock = $this->getMockForAbstractClass(InputInterface::class);
5656
$outputMock = $this->getMockForAbstractClass(OutputInterface::class);
5757

58-
$this->deployConfigMock->expects($this->exactly(2))
58+
$this->deployConfigMock->expects($this->exactly(3))
5959
->method('get')
6060
->willReturnMap([
6161
[DeployInterface::VAR_REDIS_USE_SLAVE_CONNECTION, true],
@@ -82,14 +82,14 @@ public function testExecuteWithErrors()
8282
[$outputMock, 'Valkey slave connection is not configured']
8383
];
8484

85-
$this->deployConfigMock->expects($this->exactly(2))
85+
$this->deployConfigMock->expects($this->exactly(3))
8686
->method('get')
8787
->willReturnMap([
8888
[DeployInterface::VAR_REDIS_USE_SLAVE_CONNECTION, false],
8989
[DeployInterface::VAR_VALKEY_USE_SLAVE_CONNECTION, false],
9090
[DeployInterface::VAR_MYSQL_USE_SLAVE_CONNECTION, false],
9191
]);
92-
$this->outputFormatterMock->expects($this->exactly(2))
92+
$this->outputFormatterMock->expects($this->exactly(3))
9393
->method('writeItem')
9494
->willReturnCallback(function (...$args) use (&$series) {
9595
$expectedArgs = array_shift($series);

0 commit comments

Comments
 (0)