Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make share cache test resilient against skeleton files not being there
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and blizzz committed Mar 10, 2022
commit c13f89adaccf4a4d77994f1c8a0e45dfd5931bb4
8 changes: 3 additions & 5 deletions apps/files_sharing/tests/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,15 @@ public function testSearchByMime() {

public function testGetFolderContentsInRoot() {
$results = $this->user2View->getDirectoryContent('/');
$results = (array_filter($results, function($file) {
return $file->getName() !== 'welcome.txt';
}));

// we should get the shared items "shareddir" and "shared single file.txt"
// additional root will always contain the example file "welcome.txt",
// so this will be part of the result
$this->verifyFiles(
[
[
'name' => 'welcome.txt',
'path' => 'files/welcome.txt',
'mimetype' => 'text/plain',
],
[
'name' => 'shareddir',
'path' => 'files/shareddir',
Expand Down