diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-11 14:29:38 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-12-11 15:41:08 +0100 |
commit | 71f48778166fb8a6aab8a758e4377ba8c138e904 (patch) | |
tree | 7571248c48bf0bda2357880f292e1dd6275bea02 | |
parent | b0842228f081b3b455be591c0e7c50cb81076565 (diff) | |
download | nextcloud-server-71f48778166fb8a6aab8a758e4377ba8c138e904.tar.gz nextcloud-server-71f48778166fb8a6aab8a758e4377ba8c138e904.zip |
skip test if we cant use the filesystem when not logged in
-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 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'); + } } } |