diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-25 15:49:30 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-02-25 15:49:30 +0100 |
commit | ad10a3331693c90c47d04c7ac6883aa5ca1ed5c6 (patch) | |
tree | 583250f1f239ad8e8ef9241d394d83ecf9b73fee /apps/files_sharing | |
parent | 0235764f7039a80b94363c7a8f4c7ff89e347389 (diff) | |
download | nextcloud-server-ad10a3331693c90c47d04c7ac6883aa5ca1ed5c6.tar.gz nextcloud-server-ad10a3331693c90c47d04c7ac6883aa5ca1ed5c6.zip |
make share cache test resilient against skeleton files not being there
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/tests/CacheTest.php | 8 |
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', |