]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix the avatarcontroller cache needing the cache dir
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 11 Mar 2015 17:18:33 +0000 (18:18 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 11 Mar 2015 17:18:33 +0000 (18:18 +0100)
This was removed in 82254ad5efb65e8650567f49343ec37eb55e2f3e and
unfortunatly missed by jenkins before mering into master.

tests/core/avatar/avatarcontrollertest.php

index 1cd621b070c8c7349fbbb5586985011f3ee817ef..f43cd7fedd1569806ec05ed5e96655073a1ac42b 100644 (file)
@@ -95,6 +95,10 @@ class AvatarControllerTest extends \Test\TestCase {
                \OC_User::setUserId($this->user);
                \OC_Util::setupFS($this->user);
 
+               // Create Cache dir
+               $view = new \OC\Files\View('/'.$this->user);
+               $view->mkdir('cache');
+
                // Configure userMock
                $this->userMock->method('getDisplayName')->willReturn($this->user);
                $this->userMock->method('getUID')->willReturn($this->user);
@@ -275,7 +279,6 @@ class AvatarControllerTest extends \Test\TestCase {
 
        /**
         * Check what happens when we upload a GIF
-        * TODO: Finish
         */
        public function testPostAvatarFileGif() {
                //Create temp file