[Pkg-owncloud-commits] [owncloud] 37/49: Added unit test for the test() method

David Prévot taffit at moszumanska.debian.org
Thu Dec 5 16:02:55 UTC 2013


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

taffit pushed a commit to branch master
in repository owncloud.

commit fd634fdec854554daef40bda283c43dd2ae00577
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Tue Dec 3 14:35:53 2013 +0100

    Added unit test for the test() method
    
    This is to make sure that method isn't broken
---
 lib/private/files/storage/wrapper/wrapper.php | 8 ++++++++
 tests/lib/files/storage/storage.php           | 7 +++++++
 2 files changed, 15 insertions(+)

diff --git a/lib/private/files/storage/wrapper/wrapper.php b/lib/private/files/storage/wrapper/wrapper.php
index 0336c27..f9adda8 100644
--- a/lib/private/files/storage/wrapper/wrapper.php
+++ b/lib/private/files/storage/wrapper/wrapper.php
@@ -424,4 +424,12 @@ class Wrapper implements \OC\Files\Storage\Storage {
 	public function getETag($path) {
 		return $this->storage->getETag($path);
 	}
+
+	/**
+	 * Returns true
+	 * @return true
+	 */
+	public function test() {
+		return $this->storage->test();
+	}
 }
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php
index 5a05816..182c014 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/files/storage/storage.php
@@ -43,6 +43,13 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
 	}
 
 	/**
+	 * Check that the test() function works
+	 */
+	public function testTestFunction() {
+		$this->assertTrue($this->instance->test());
+	}
+
+	/**
 	 * @dataProvider directoryProvider
 	 */
 	public function testDirectories($directory) {

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