Use dummy backend in test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
a184e350d7
commit
1bd688a9d1
|
@ -26,6 +26,7 @@ class HelperStorageTest extends \Test\TestCase {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->user = $this->getUniqueID('user_');
|
$this->user = $this->getUniqueID('user_');
|
||||||
|
\OC_User::useBackend('dummy');
|
||||||
\OC::$server->getUserManager()->createUser($this->user, $this->user);
|
\OC::$server->getUserManager()->createUser($this->user, $this->user);
|
||||||
|
|
||||||
$this->storage = \OC\Files\Filesystem::getStorage('/');
|
$this->storage = \OC\Files\Filesystem::getStorage('/');
|
||||||
|
|
Loading…
Reference in New Issue