summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-11 14:29:38 +0100
committerRobin Appelman <icewind@owncloud.com>2015-12-11 15:41:25 +0100
commite6afdd56595780fdf289470535b97f1ad9893101 (patch)
tree91f17352446c56a967efed501ad4a7089f0cbdc3 /apps/files_trashbin
parent9c8083dab97fdec93abcd303aba4fecdbc46e913 (diff)
downloadnextcloud-server-e6afdd56595780fdf289470535b97f1ad9893101.tar.gz
nextcloud-server-e6afdd56595780fdf289470535b97f1ad9893101.zip
skip test if we cant use the filesystem when not logged in
Diffstat (limited to 'apps/files_trashbin')
-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 b2510eafcfd..e0592b26d92 100644
--- a/apps/files_trashbin/tests/storage.php
+++ b/apps/files_trashbin/tests/storage.php
@@ -530,7 +530,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');
+ }
}
}