diff --git a/tests/Console/Command/MaintenanceCommandTest.php b/tests/Console/Command/MaintenanceCommandTest.php index 684a49b..2603bbe 100644 --- a/tests/Console/Command/MaintenanceCommandTest.php +++ b/tests/Console/Command/MaintenanceCommandTest.php @@ -103,14 +103,13 @@ public function testExecuteWrongRetryValue(): void $o = new MaintenanceCommand($app, $mockInfo[3]); $o->bind($mockInfo[0]); - $o->parse(['platine', 'down', '-r=-10']); + $this->expectExceptionMessage(RuntimeException::class); + $this->expectExceptionMessage('Invalid retry value [0], must be an integer greather than zero'); + + $o->parse(['platine', 'down', '-r=0']); $this->assertEquals('maintenance', $o->getName()); $o->interact($mockInfo[1], $mockInfo[2]); $o->execute(); - - $expected = ''; - - $this->assertEquals($expected, $this->getConsoleOutputContent()); } }