diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-03-29 18:52:17 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-03-30 10:25:37 +0200 |
commit | 3cadc45ca5020d1ca6ca511e73e576be150e4c44 (patch) | |
tree | 4419c4f168d3c7d79b46e7875dc63208d28b1335 /tests | |
parent | 456035a750602d6f47384c170e25063684774043 (diff) | |
download | nextcloud-server-3cadc45ca5020d1ca6ca511e73e576be150e4c44.tar.gz nextcloud-server-3cadc45ca5020d1ca6ca511e73e576be150e4c44.zip |
only remove avatars from the folder we store them in
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/avatartest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/lib/avatartest.php b/tests/lib/avatartest.php index b2b69ac1a6c..b0ab4cb8b5c 100644 --- a/tests/lib/avatartest.php +++ b/tests/lib/avatartest.php @@ -148,8 +148,7 @@ class AvatarTest extends \Test\TestCase { ->willReturn('avatarX'); $nonAvatarFile->expects($this->never())->method('delete'); - $this->folder->method('search') - ->with('avatar') + $this->folder->method('getDirectoryListing') ->willReturn([$avatarFileJPG, $avatarFilePNG, $resizedAvatarFile, $nonAvatarFile]); $newFile = $this->getMock('\OCP\Files\File'); |