diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-08-19 15:35:00 +0300 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-08-19 15:35:00 +0300 |
commit | 5e550829c539c4ff13ffef4ca2ece18200faa2ec (patch) | |
tree | 54c303eee4d0e3a519c64907086aaf9fd88cd5bd /apps/theming/tests | |
parent | 145c3be5a7a3431c09a87a5a0d5760cf1332072e (diff) |
Fix theming tests
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r-- | apps/theming/tests/Themes/DefaultThemeTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/theming/tests/Themes/DefaultThemeTest.php b/apps/theming/tests/Themes/DefaultThemeTest.php index 160efdba142..84430360897 100644 --- a/apps/theming/tests/Themes/DefaultThemeTest.php +++ b/apps/theming/tests/Themes/DefaultThemeTest.php @@ -75,6 +75,13 @@ class DefaultThemeTest extends TestCase { return vsprintf($text, $parameters); }); + $this->urlGenerator + ->expects($this->any()) + ->method('imagePath') + ->willReturnCallback(function ($app = 'core', $filename = '') { + return "/$app/img/$filename"; + }); + $this->defaultTheme = new DefaultTheme( $util, $this->themingDefaults, |