summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-04 13:44:05 +0000
committerGitHub <noreply@github.com>2022-03-04 13:44:05 +0000
commit8b22a463e9b16282860991004430ba54e5e75dbc (patch)
treef7f66797543781441097697c7aef7b1245e0d206 /apps/files_sharing
parent821a0dc87594c717e785027b81134bf8783913c9 (diff)
parentec15020777c9f0de248ced8b83fe48767c2919b6 (diff)
downloadnextcloud-server-8b22a463e9b16282860991004430ba54e5e75dbc.tar.gz
nextcloud-server-8b22a463e9b16282860991004430ba54e5e75dbc.zip
Merge pull request #31266 from nextcloud/root-setup-mountprovider
move root mount setup to mountproviders
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/CacheTest.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_sharing/tests/CacheTest.php b/apps/files_sharing/tests/CacheTest.php
index 2623b4c34b5..f4f64bc6a32 100644
--- a/apps/files_sharing/tests/CacheTest.php
+++ b/apps/files_sharing/tests/CacheTest.php
@@ -243,6 +243,9 @@ 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",
@@ -250,11 +253,6 @@ class CacheTest extends TestCase {
$this->verifyFiles(
[
[
- 'name' => 'welcome.txt',
- 'path' => 'files/welcome.txt',
- 'mimetype' => 'text/plain',
- ],
- [
'name' => 'shareddir',
'path' => 'files/shareddir',
'mimetype' => 'httpd/unix-directory',