summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/Command
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-05-24 15:20:52 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-05-24 15:20:52 +0200
commit948f0740ff2c97c558435b845d4eec64cf6c7d66 (patch)
treee3b139c5135c52b46f451ad63d86850016d0fda4 /apps/files_sharing/tests/Command
parent45a75c631e638ccab8934584aedad834229d10a7 (diff)
downloadnextcloud-server-948f0740ff2c97c558435b845d4eec64cf6c7d66.tar.gz
nextcloud-server-948f0740ff2c97c558435b845d4eec64cf6c7d66.zip
Remove at() matcher in files_sharing tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/tests/Command')
-rw-r--r--apps/files_sharing/tests/Command/CleanupRemoteStoragesTest.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/apps/files_sharing/tests/Command/CleanupRemoteStoragesTest.php b/apps/files_sharing/tests/Command/CleanupRemoteStoragesTest.php
index 55f719b8f88..cc7fcabe5ac 100644
--- a/apps/files_sharing/tests/Command/CleanupRemoteStoragesTest.php
+++ b/apps/files_sharing/tests/Command/CleanupRemoteStoragesTest.php
@@ -186,19 +186,15 @@ class CleanupRemoteStoragesTest extends TestCase {
->disableOriginalConstructor()
->getMock();
- //
-
// parent folder, `files`, ´test` and `welcome.txt` => 4 elements
- $at = 0;
- $output
- ->expects($this->at($at++))
- ->method('writeln')
- ->with('5 remote storage(s) need(s) to be checked');
$output
- ->expects($this->at($at++))
+ ->expects($this->any())
->method('writeln')
- ->with('5 remote share(s) exist');
+ ->withConsecutive(
+ ['5 remote storage(s) need(s) to be checked'],
+ ['5 remote share(s) exist'],
+ );
$this->cloudIdManager
->expects($this->any())