aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/tests/Themes/DefaultThemeTest.php
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-09-28 02:35:51 +0000
committerChristopher Ng <chrng8@gmail.com>2022-10-05 06:19:08 +0000
commite962d3fba4430f3a13cda70db9009784fc24112a (patch)
treeb5fb729a2b0863ecefee40357dd379634226fe10 /apps/theming/tests/Themes/DefaultThemeTest.php
parent89635e894986fd63d6acab37e78af80ced79505e (diff)
downloadnextcloud-server-e962d3fba4430f3a13cda70db9009784fc24112a.tar.gz
nextcloud-server-e962d3fba4430f3a13cda70db9009784fc24112a.zip
Use color preset of shipped background as primary color
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/theming/tests/Themes/DefaultThemeTest.php')
-rw-r--r--apps/theming/tests/Themes/DefaultThemeTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/theming/tests/Themes/DefaultThemeTest.php b/apps/theming/tests/Themes/DefaultThemeTest.php
index 84430360897..c1de2810396 100644
--- a/apps/theming/tests/Themes/DefaultThemeTest.php
+++ b/apps/theming/tests/Themes/DefaultThemeTest.php
@@ -32,6 +32,7 @@ use OCP\Files\IAppData;
use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
+use OCP\IUserSession;
use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;
@@ -52,6 +53,7 @@ class DefaultThemeTest extends TestCase {
protected function setUp(): void {
$this->themingDefaults = $this->createMock(ThemingDefaults::class);
+ $this->userSession = $this->createMock(IUserSession::class);
$this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->imageManager = $this->createMock(ImageManager::class);
$this->config = $this->createMock(IConfig::class);
@@ -85,6 +87,7 @@ class DefaultThemeTest extends TestCase {
$this->defaultTheme = new DefaultTheme(
$util,
$this->themingDefaults,
+ $this->userSession,
$this->urlGenerator,
$this->imageManager,
$this->config,