fix tests

This commit is contained in:
Robin Appelman 2015-05-11 16:50:43 +02:00 committed by Vincent Petry
parent a5d652a6b8
commit 724f88d9ff
3 changed files with 3 additions and 5 deletions

View File

@ -646,6 +646,7 @@ class Test_Trashbin extends \Test\TestCase {
\OC\Files\Filesystem::tearDown(); \OC\Files\Filesystem::tearDown();
\OC_User::setUserId($user); \OC_User::setUserId($user);
\OC_Util::setupFS($user); \OC_Util::setupFS($user);
\OC::$server->getUserFolder($user);
} }
} }

View File

@ -753,6 +753,7 @@ class Test_Files_Versioning extends \Test\TestCase {
\OC\Files\Filesystem::tearDown(); \OC\Files\Filesystem::tearDown();
\OC_User::setUserId($user); \OC_User::setUserId($user);
\OC_Util::setupFS($user); \OC_Util::setupFS($user);
\OC::$server->getUserFolder($user);
} }
} }

View File

@ -88,11 +88,7 @@ class AvatarControllerTest extends \Test\TestCase {
$this->user = $this->getUniqueID('user'); $this->user = $this->getUniqueID('user');
OC::$server->getUserManager()->createUser($this->user, $this->user); OC::$server->getUserManager()->createUser($this->user, $this->user);
\OC_Util::tearDownFS(); $this->loginAsUser($this->user);
\OC_User::setUserId('');
Filesystem::tearDown();
\OC_User::setUserId($this->user);
\OC_Util::setupFS($this->user);
// Create Cache dir // Create Cache dir
$view = new \OC\Files\View('/'.$this->user); $view = new \OC\Files\View('/'.$this->user);