Added unit test for the test() method

This is to make sure that method isn't broken
This commit is contained in:
Vincent Petry 2013-12-03 14:35:53 +01:00
parent a81d4175ba
commit 6cf9844e9c
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
*/