mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Fix theming tests on PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
260be93a14
commit
6b770eb579
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue