diff options
author | Robin Appelman <robin@icewind.nl> | 2023-05-15 17:38:43 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-05-22 15:10:54 +0200 |
commit | 51984dc27319c627733ef0dcea11faa65fd63541 (patch) | |
tree | 5acd7410d056b1c55dc84b2d82c85fa1473d9ded /apps/theming/tests | |
parent | b313e2a507776141c320af06bd3369e188bc59b8 (diff) | |
download | nextcloud-server-51984dc27319c627733ef0dcea11faa65fd63541.tar.gz nextcloud-server-51984dc27319c627733ef0dcea11faa65fd63541.zip |
fix loading custom logo image
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r-- | apps/theming/tests/IconBuilderTest.php | 6 | ||||
-rw-r--r-- | apps/theming/tests/UtilTest.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/theming/tests/IconBuilderTest.php b/apps/theming/tests/IconBuilderTest.php index 6edd6a05525..5637ce25cb6 100644 --- a/apps/theming/tests/IconBuilderTest.php +++ b/apps/theming/tests/IconBuilderTest.php @@ -103,7 +103,7 @@ class IconBuilderTest extends TestCase { ->willReturn($color); $this->appData->expects($this->once()) ->method('getFolder') - ->with('images') + ->with('global/images') ->willThrowException(new NotFoundException()); $expectedIcon = new \Imagick(realpath(dirname(__FILE__)). "/data/" . $file); @@ -132,7 +132,7 @@ class IconBuilderTest extends TestCase { ->willReturn($color); $this->appData->expects($this->once()) ->method('getFolder') - ->with('images') + ->with('global/images') ->willThrowException(new NotFoundException()); $expectedIcon = new \Imagick(realpath(dirname(__FILE__)). "/data/" . $file); @@ -165,7 +165,7 @@ class IconBuilderTest extends TestCase { ->willReturn($color); $this->appData->expects($this->once()) ->method('getFolder') - ->with('images') + ->with('global/images') ->willThrowException(new NotFoundException()); $expectedIcon = new \Imagick(realpath(dirname(__FILE__)). "/data/" . $file); diff --git a/apps/theming/tests/UtilTest.php b/apps/theming/tests/UtilTest.php index 137038acb98..febf6c0a79e 100644 --- a/apps/theming/tests/UtilTest.php +++ b/apps/theming/tests/UtilTest.php @@ -153,7 +153,7 @@ class UtilTest extends TestCase { public function testGetAppIcon($app, $expected) { $this->appData->expects($this->any()) ->method('getFolder') - ->with('images') + ->with('global/images') ->willThrowException(new NotFoundException()); $this->appManager->expects($this->once()) ->method('getAppPath') @@ -180,7 +180,7 @@ class UtilTest extends TestCase { ->willReturn($file); $this->appData->expects($this->once()) ->method('getFolder') - ->with('images') + ->with('global/images') ->willReturn($folder); $icon = $this->util->getAppIcon('noapplikethis'); $this->assertEquals($file, $icon); |