aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Encryption/SetDefaultModuleTest.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-09-14 13:41:18 +0200
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-09-18 10:21:21 +0200
commit0c421975bd203f793fbb71618259ac06b6ce0cf6 (patch)
treedf7c697ae228145b629b0c35ec51c352e0d9d5d7 /tests/Core/Command/Encryption/SetDefaultModuleTest.php
parent8d43f1b31c29934eb7c444919899e3f5838bc7a9 (diff)
downloadnextcloud-server-0c421975bd203f793fbb71618259ac06b6ce0cf6.tar.gz
nextcloud-server-0c421975bd203f793fbb71618259ac06b6ce0cf6.zip
Remove last calls to deprecated at matcher in tests/Core
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/Core/Command/Encryption/SetDefaultModuleTest.php')
-rw-r--r--tests/Core/Command/Encryption/SetDefaultModuleTest.php11
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]);
}