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

David Prévot taffit at moszumanska.debian.org
Tue Dec 22 16:52:02 UTC 2015


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

taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.

commit e6afdd56595780fdf289470535b97f1ad9893101
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 b2510ea..e0592b2 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');
+		}
 	}
 }

-- 
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