Fix AvatarControllerTest with phpunit 5.2+

This commit is contained in:
Joas Schilling 2016-07-01 16:04:25 +02:00
parent 23cc465b0d
commit 197e94457f
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class AvatarControllerTest extends \Test\TestCase {
$this->container['UserSession']->method('getUser')->willReturn($this->userMock);
$this->avatarFile = $this->getMock('OCP\Files\File');
$this->avatarFile->method('getContnet')->willReturn('image data');
$this->avatarFile->method('getContent')->willReturn('image data');
$this->avatarFile->method('getMimeType')->willReturn('image type');
$this->avatarFile->method('getEtag')->willReturn('my etag');
}