diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-11 14:29:38 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-12-11 14:29:38 +0100 |
commit | 5b2957bad14adb7895f75dd27cafd2257e24e78a (patch) | |
tree | 7ef348cd3eb8ed6e8005c7333d798ffb352f3a9d /apps/files_trashbin | |
parent | 415cf9278446b4422ef7633d944ca0f3aebcd301 (diff) | |
download | nextcloud-server-5b2957bad14adb7895f75dd27cafd2257e24e78a.tar.gz nextcloud-server-5b2957bad14adb7895f75dd27cafd2257e24e78a.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.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_trashbin/tests/storage.php b/apps/files_trashbin/tests/storage.php index abd0810f212..387bb20c6d4 100644 --- a/apps/files_trashbin/tests/storage.php +++ b/apps/files_trashbin/tests/storage.php @@ -538,7 +538,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'); + } } } |