aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_trashbin/tests/storage.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_trashbin/tests/storage.php b/apps/files_trashbin/tests/storage.php
index 67e5b298dae..37c303c31b5 100644
--- a/apps/files_trashbin/tests/storage.php
+++ b/apps/files_trashbin/tests/storage.php
@@ -531,7 +531,10 @@ class Storage extends \Test\TestCase {
public function testSingleStorageDeleteFileLoggedOut() {
$this->logout();
- $this->assertTrue($this->userView->file_exists('test.txt'));
- $this->userView->unlink('test.txt');
+ if (!$this->userView->file_exists('test.txt')) {
+ $this->markTestSkipped('Skipping since the current home storage backend requires the user to logged in');
+ } else {
+ $this->userView->unlink('test.txt');
+ }
}
}