summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-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');