Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-26 15:41:37 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-12-16 11:43:29 +0300
commit6b770eb5799f58c41db2b3249e6e71cf69049fac (patch)
treeefe2358fc99fb917c5e376ac965537fb4e9d9e65 /apps/theming
parent260be93a14af6eccb6240dfb3692073775da259e (diff)
Fix theming tests on PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php4
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);