fix storage wrapper namespaces
This commit is contained in:
parent
125f9f4221
commit
a7c70915d5
3 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace OC\Files\Storage\Wrapper;
|
||||
|
||||
class Wrapper implements Storage {
|
||||
class Wrapper implements \OC\Files\Storage\Storage {
|
||||
/**
|
||||
* @var \OC\Files\Storage\Storage $storage
|
||||
*/
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Test\Files\Mount;
|
|||
|
||||
|
||||
use OC\Files\Storage\Loader;
|
||||
use OC\Files\Storage\Wrapper;
|
||||
use OC\Files\Storage\Wrapper\Wrapper;
|
||||
|
||||
class Mount extends \PHPUnit_Framework_TestCase {
|
||||
public function testFromStorageObject() {
|
||||
|
@ -41,6 +41,6 @@ class Mount extends \PHPUnit_Framework_TestCase {
|
|||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
$mount = new \OC\Files\Mount\Mount($storage, '/foo', array(), $loader);
|
||||
$this->assertInstanceOf('\OC\Files\Storage\Wrapper', $mount->getStorage());
|
||||
$this->assertInstanceOf('\OC\Files\Storage\Wrapper\Wrapper', $mount->getStorage());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ class Wrapper extends Storage {
|
|||
public function setUp() {
|
||||
$this->tmpDir = \OC_Helper::tmpFolder();
|
||||
$storage = new \OC\Files\Storage\Local(array('datadir' => $this->tmpDir));
|
||||
$this->instance = new \OC\Files\Storage\Wrapper(array('storage' => $storage));
|
||||
$this->instance = new \OC\Files\Storage\Wrapper\Wrapper(array('storage' => $storage));
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
|
|
Loading…
Reference in a new issue