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 /tests/core | |
parent | a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb (diff) | |
download | nextcloud-server-724f88d9ff1e03e9d857c331961d98da62f31b5e.tar.gz nextcloud-server-724f88d9ff1e03e9d857c331961d98da62f31b5e.zip |
fix tests
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/avatar/avatarcontrollertest.php | 6 |
1 files changed, 1 insertions, 5 deletions
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); |