From 5b2957bad14adb7895f75dd27cafd2257e24e78a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 11 Dec 2015 14:29:38 +0100 Subject: [PATCH] skip test if we cant use the filesystem when not logged in --- apps/files_trashbin/tests/storage.php | 7 +++++-- 1 file 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'); + } } } -- 2.39.5