diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-05-24 13:02:07 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-05-24 13:02:07 +0200 |
commit | 4dfc839f870908155b0617624f968f4849eebb91 (patch) | |
tree | a3dd0e34309225d61687118115b5eafa5af850d5 /apps/files/tests/Command | |
parent | 45a75c631e638ccab8934584aedad834229d10a7 (diff) | |
download | nextcloud-server-4dfc839f870908155b0617624f968f4849eebb91.tar.gz nextcloud-server-4dfc839f870908155b0617624f968f4849eebb91.zip |
Remove at() matcher for tests for files app
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files/tests/Command')
-rw-r--r-- | apps/files/tests/Command/DeleteOrphanedFilesTest.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/files/tests/Command/DeleteOrphanedFilesTest.php b/apps/files/tests/Command/DeleteOrphanedFilesTest.php index bf266bc8229..520d3278e64 100644 --- a/apps/files/tests/Command/DeleteOrphanedFilesTest.php +++ b/apps/files/tests/Command/DeleteOrphanedFilesTest.php @@ -132,14 +132,12 @@ class DeleteOrphanedFilesTest extends TestCase { // parent folder, `files`, ´test` and `welcome.txt` => 4 elements $output - ->expects($this->at(0)) + ->expects($this->exactly(2)) ->method('writeln') - ->with('3 orphaned file cache entries deleted'); - - $output - ->expects($this->at(1)) - ->method('writeln') - ->with('1 orphaned mount entries deleted'); + ->withConsecutive( + ['3 orphaned file cache entries deleted'], + ['1 orphaned mount entries deleted'], + ); $this->command->execute($input, $output); |