Merge pull request #6168 from owncloud/extstorage-testtestmethod

Added unit test for the test() method of ext storage
remotes/origin/ldap_group_count
Frank Karlitschek 13 years ago
commit 8fdbb98899
  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