diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-05-11 16:50:43 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-05-18 12:11:32 +0200 |
commit | 724f88d9ff1e03e9d857c331961d98da62f31b5e (patch) | |
tree | b5121980e20122b9c65677c7ccc3883d8a0c9282 | |
parent | a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb (diff) | |
download | nextcloud-server-724f88d9ff1e03e9d857c331961d98da62f31b5e.tar.gz nextcloud-server-724f88d9ff1e03e9d857c331961d98da62f31b5e.zip |
fix tests
-rw-r--r-- | apps/files_trashbin/tests/trashbin.php | 1 | ||||
-rw-r--r-- | apps/files_versions/tests/versions.php | 1 | ||||
-rw-r--r-- | tests/core/avatar/avatarcontrollertest.php | 6 |
3 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_trashbin/tests/trashbin.php b/apps/files_trashbin/tests/trashbin.php index 85c47b527b7..0c37af24de5 100644 --- a/apps/files_trashbin/tests/trashbin.php +++ b/apps/files_trashbin/tests/trashbin.php @@ -646,6 +646,7 @@ class Test_Trashbin extends \Test\TestCase { \OC\Files\Filesystem::tearDown(); \OC_User::setUserId($user); \OC_Util::setupFS($user); + \OC::$server->getUserFolder($user); } } diff --git a/apps/files_versions/tests/versions.php b/apps/files_versions/tests/versions.php index 97afcf715cb..685bf48d652 100644 --- a/apps/files_versions/tests/versions.php +++ b/apps/files_versions/tests/versions.php @@ -753,6 +753,7 @@ class Test_Files_Versioning extends \Test\TestCase { \OC\Files\Filesystem::tearDown(); \OC_User::setUserId($user); \OC_Util::setupFS($user); + \OC::$server->getUserFolder($user); } } diff --git a/tests/core/avatar/avatarcontrollertest.php b/tests/core/avatar/avatarcontrollertest.php index a5456eb6789..c58d7febc3f 100644 --- a/tests/core/avatar/avatarcontrollertest.php +++ b/tests/core/avatar/avatarcontrollertest.php @@ -88,11 +88,7 @@ class AvatarControllerTest extends \Test\TestCase { $this->user = $this->getUniqueID('user'); OC::$server->getUserManager()->createUser($this->user, $this->user); - \OC_Util::tearDownFS(); - \OC_User::setUserId(''); - Filesystem::tearDown(); - \OC_User::setUserId($this->user); - \OC_Util::setupFS($this->user); + $this->loginAsUser($this->user); // Create Cache dir $view = new \OC\Files\View('/'.$this->user); |