diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-26 14:41:37 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-16 09:43:29 +0100 |
commit | 6b770eb5799f58c41db2b3249e6e71cf69049fac (patch) | |
tree | efe2358fc99fb917c5e376ac965537fb4e9d9e65 /apps | |
parent | 260be93a14af6eccb6240dfb3692073775da259e (diff) | |
download | nextcloud-server-6b770eb5799f58c41db2b3249e6e71cf69049fac.tar.gz nextcloud-server-6b770eb5799f58c41db2b3249e6e71cf69049fac.zip |
Fix theming tests on PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/tests/Controller/ThemingControllerTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php index 639574a5270..b85b2bb6ad0 100644 --- a/apps/theming/tests/Controller/ThemingControllerTest.php +++ b/apps/theming/tests/Controller/ThemingControllerTest.php @@ -689,6 +689,8 @@ class ThemingControllerTest extends TestCase { public function testGetLogo() { $file = $this->createMock(ISimpleFile::class); + $file->method('getName')->willReturn('logo.svg'); + $file->method('getMTime')->willReturn(42); $this->imageManager->expects($this->once()) ->method('getImage') ->willReturn($file); @@ -719,6 +721,8 @@ class ThemingControllerTest extends TestCase { public function testGetLoginBackground() { $file = $this->createMock(ISimpleFile::class); + $file->method('getName')->willReturn('background.png'); + $file->method('getMTime')->willReturn(42); $this->imageManager->expects($this->once()) ->method('getImage') ->willReturn($file); |