Merge pull request #6168 from owncloud/extstorage-testtestmethod

Added unit test for the test() method of ext storage
This commit is contained in:
Frank Karlitschek 2013-12-03 11:00:49 -08:00
commit 8fdbb98899
2 changed files with 15 additions and 0 deletions

View file

@ -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();
}
}

View file

@ -42,6 +42,13 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
$this->assertTrue($this->instance->isUpdatable('/'), 'Root folder is not writable');
}
/**
* Check that the test() function works
*/
public function testTestFunction() {
$this->assertTrue($this->instance->test());
}
/**
* @dataProvider directoryProvider
*/