summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-03-29 18:52:17 +0200
committerRobin Appelman <icewind@owncloud.com>2016-03-30 10:24:43 +0200
commitc22697e09ed063df0d035db36e04f0e0811d599d (patch)
treed4e3cc7146c8c6d7e108adf478901c25ec74ec73 /tests
parentdd5bbc31f235b729983e60809841879d0ecaa133 (diff)
downloadnextcloud-server-c22697e09ed063df0d035db36e04f0e0811d599d.tar.gz
nextcloud-server-c22697e09ed063df0d035db36e04f0e0811d599d.zip
only remove avatars from the folder we store them in
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/avatartest.php3
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');