[Pkg-owncloud-commits] [owncloud] 84/107: skip test if we cant use the filesystem when not logged in

David Prévot taffit at moszumanska.debian.org
Thu Dec 17 19:40:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 71f48778166fb8a6aab8a758e4377ba8c138e904
Author: Robin Appelman <icewind at owncloud.com>
Date:   Fri Dec 11 14:29:38 2015 +0100

    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 67e5b29..37c303c 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');
+		}
 	}
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list