Merge pull request #6168 from owncloud/extstorage-testtestmethod
Added unit test for the test() method of ext storage
This commit is contained in:
commit
8fdbb98899
|
@ -424,4 +424,12 @@ class Wrapper implements \OC\Files\Storage\Storage {
|
||||||
public function getETag($path) {
|
public function getETag($path) {
|
||||||
return $this->storage->getETag($path);
|
return $this->storage->getETag($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true
|
||||||
|
* @return true
|
||||||
|
*/
|
||||||
|
public function test() {
|
||||||
|
return $this->storage->test();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,13 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
|
||||||
$this->assertTrue($this->instance->isUpdatable('/'), 'Root folder is not writable');
|
$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
|
* @dataProvider directoryProvider
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue