diff options
Diffstat (limited to 'tests/Core/Command/Encryption/SetDefaultModuleTest.php')
-rw-r--r-- | tests/Core/Command/Encryption/SetDefaultModuleTest.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/Core/Command/Encryption/SetDefaultModuleTest.php b/tests/Core/Command/Encryption/SetDefaultModuleTest.php index 015964e1357..4a39fc0aefb 100644 --- a/tests/Core/Command/Encryption/SetDefaultModuleTest.php +++ b/tests/Core/Command/Encryption/SetDefaultModuleTest.php @@ -127,13 +127,12 @@ class SetDefaultModuleTest extends TestCase { ->with('maintenance', false) ->willReturn(true); - $this->consoleOutput->expects($this->at(0)) + $this->consoleOutput->expects($this->exactly(2)) ->method('writeln') - ->with($this->stringContains('Maintenance mode must be disabled when setting default module,')); - - $this->consoleOutput->expects($this->at(1)) - ->method('writeln') - ->with($this->stringContains('in order to load the relevant encryption modules correctly.')); + ->withConsecutive( + [$this->stringContains('Maintenance mode must be disabled when setting default module,')], + [$this->stringContains('in order to load the relevant encryption modules correctly.')], + ); self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]); } |