Browse Source

Merge pull request #14809 from rullzer/avatarcontroller_cache_fix

Fix the avatarcontroller cache needing the cache dir
tags/v8.1.0alpha1
Thomas Müller 9 years ago
parent
commit
84a5d43ed6
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      tests/core/avatar/avatarcontrollertest.php

+ 4
- 1
tests/core/avatar/avatarcontrollertest.php 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

Loading…
Cancel
Save