summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-11-15 16:55:37 +0100
committerSimon L <szaimen@e.mail.de>2022-11-18 15:03:41 +0100
commit04b236e32061ddc0b236728363cdaeb189fc3c6a (patch)
treee54d551d426a2aabf87fc7b193768d1185568190 /apps/theming/tests
parentf021172eab79b6e1adaa1950009dd6446f1ddb64 (diff)
downloadnextcloud-server-04b236e32061ddc0b236728363cdaeb189fc3c6a.tar.gz
nextcloud-server-04b236e32061ddc0b236728363cdaeb189fc3c6a.zip
generate user themed icons
Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php
index e3e6f2d1df7..445ffd2b0a7 100644
--- a/apps/theming/tests/ThemingDefaultsTest.php
+++ b/apps/theming/tests/ThemingDefaultsTest.php
@@ -868,7 +868,7 @@ class ThemingDefaultsTest extends TestCase {
}
/** @dataProvider dataReplaceImagePath */
- public function testReplaceImagePath($app, $image, $result = 'themingRoute?v=0') {
+ public function testReplaceImagePath($app, $image, $result = 'themingRoute?v=1234abcd') {
$this->cache->expects($this->any())
->method('get')
->with('shouldReplaceIcons')
@@ -882,6 +882,12 @@ class ThemingDefaultsTest extends TestCase {
->expects($this->any())
->method('linkToRoute')
->willReturn('themingRoute');
+ if ($result) {
+ $this->util
+ ->expects($this->once())
+ ->method('getCacheBuster')
+ ->willReturn('1234abcd');
+ }
$this->assertEquals($result, $this->template->replaceImagePath($app, $image));
}
}