diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-04 09:59:32 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-09 10:01:34 +0100 |
commit | c7ff0c71b4d7d78e1da6901ef6820eea70dfa82a (patch) | |
tree | f3d16ef512c2a7ffa00396d1c12fd97ae5784c0c /apps/theming/tests/ThemingDefaultsTest.php | |
parent | 0247f22c837d515458b0c1d3a34d904ce8001930 (diff) | |
download | nextcloud-server-c7ff0c71b4d7d78e1da6901ef6820eea70dfa82a.tar.gz nextcloud-server-c7ff0c71b4d7d78e1da6901ef6820eea70dfa82a.zip |
Shortcut to avoid file system setup when generating the logo URL
If an SVG is requested and the app config value for logoMime is set then the logo is there. Otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which needs to be called then).
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/theming/tests/ThemingDefaultsTest.php')
-rw-r--r-- | apps/theming/tests/ThemingDefaultsTest.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php index 066b8b8ff8d..341a1b24887 100644 --- a/apps/theming/tests/ThemingDefaultsTest.php +++ b/apps/theming/tests/ThemingDefaultsTest.php @@ -40,7 +40,6 @@ use OCA\Theming\Util; use OCP\App\IAppManager; use OCP\Files\IAppData; use OCP\Files\NotFoundException; -use OCP\Files\SimpleFS\ISimpleFile; use OCP\ICache; use OCP\ICacheFactory; use OCP\IConfig; @@ -617,11 +616,6 @@ class ThemingDefaultsTest extends TestCase { } public function testGetLogoCustom() { - $file = $this->createMock(ISimpleFile::class); - $this->imageManager->expects($this->once()) - ->method('getImage') - ->with('logo') - ->willReturn($file); $this->config ->expects($this->at(0)) ->method('getAppValue') |