]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix theming tests on PHP 8.1
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 26 Oct 2021 12:41:37 +0000 (14:41 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 16 Dec 2021 08:43:29 +0000 (09:43 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/theming/tests/Controller/ThemingControllerTest.php

index 639574a52709b466d70b305dfc3a4fd531555481..b85b2bb6ad0057e275993a94848c53b7e83249fc 100644 (file)
@@ -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);