Fix the avatarcontroller cache needing the cache dir

This was removed in 82254ad5ef and
unfortunatly missed by jenkins before mering into master.
This commit is contained in:
Roeland Jago Douma 2015-03-11 18:18:33 +01:00
parent f9fd1629da
commit 3560b32dfc
1 changed files with 4 additions and 1 deletions

View 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