mirror of
https://github.com/nextcloud/server.git
synced 2026-02-26 19:40:37 -05:00
make share cache test resilient against skeleton files not being there
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
605d97e460
commit
c13f89adac
1 changed files with 3 additions and 5 deletions
|
|
@ -243,17 +243,15 @@ class CacheTest extends TestCase {
|
|||
|
||||
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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue