diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-30 17:00:09 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-30 17:00:09 +0200 |
commit | 66ee9d56fca2d4d586726d4654b761e03d7c69d2 (patch) | |
tree | 3883883e5b16293f1b1e8a7c7d0c1be195da42d4 /tests | |
parent | 748a59db11df20f82a90dadd657af700ce94cc2d (diff) | |
parent | c22697e09ed063df0d035db36e04f0e0811d599d (diff) | |
download | nextcloud-server-66ee9d56fca2d4d586726d4654b761e03d7c69d2.tar.gz nextcloud-server-66ee9d56fca2d4d586726d4654b761e03d7c69d2.zip |
Merge pull request #23628 from owncloud/avatar-remove
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'); |