diff options
Diffstat (limited to 'apps/files/tests/Command/DeleteOrphanedFilesTest.php')
-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); |