diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-25 16:16:55 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:29:01 +0100 |
commit | 8b271b8a123f0f0cbf3a3d81cf9cf3f99a2e642e (patch) | |
tree | 2a9aab48581704506965f8ff7628d25e13fa0042 /tests/Core/Controller/GuestAvatarControllerTest.php | |
parent | cd72045433eafc8f73a620239dc5afa6a0a6d84d (diff) | |
download | nextcloud-server-8b271b8a123f0f0cbf3a3d81cf9cf3f99a2e642e.tar.gz nextcloud-server-8b271b8a123f0f0cbf3a3d81cf9cf3f99a2e642e.zip |
Fix tests and avoid PHP errors in them
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/Core/Controller/GuestAvatarControllerTest.php')
-rw-r--r-- | tests/Core/Controller/GuestAvatarControllerTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Core/Controller/GuestAvatarControllerTest.php b/tests/Core/Controller/GuestAvatarControllerTest.php index 8870faac4c7..e14a5416c49 100644 --- a/tests/Core/Controller/GuestAvatarControllerTest.php +++ b/tests/Core/Controller/GuestAvatarControllerTest.php @@ -56,6 +56,8 @@ class GuestAvatarControllerTest extends \Test\TestCase { $this->avatar = $this->getMockBuilder(IAvatar::class)->getMock(); $this->avatarManager = $this->getMockBuilder(IAvatarManager::class)->getMock(); $this->file = $this->getMockBuilder(ISimpleFile::class)->getMock(); + $this->file->method('getName')->willReturn('my name'); + $this->file->method('getMTime')->willReturn(42); $this->guestAvatarController = new GuestAvatarController( 'core', $this->request, |