Added unit test for the test() method

This is to make sure that method isn't broken
remotes/origin/stable6
Vincent Petry 13 years ago committed by Morris Jobke
parent 4de8c4e5db
commit fd634fdec8
  1. 8
      lib/private/files/storage/wrapper/wrapper.php
  2. 7
      tests/lib/files/storage/storage.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();
}
}

@ -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
*/

Loading…
Cancel
Save