diff options
author | greta <gretadoci@gmail.com> | 2022-08-29 15:11:41 +0200 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-09-14 20:17:01 +0000 |
commit | 02cc42d40ae7334609a3270ee1d16eec75098aa6 (patch) | |
tree | d6668a5a9834f70d300d0e3384ed7293dbd9b0c7 /apps/theming/tests | |
parent | bd03c7978537334822f1fc05049045d89cc56533 (diff) | |
download | nextcloud-server-02cc42d40ae7334609a3270ee1d16eec75098aa6.tar.gz nextcloud-server-02cc42d40ae7334609a3270ee1d16eec75098aa6.zip |
Move background settings from dashboard app to Appearance and accessibility settings
Signed-off-by: greta <gretadoci@gmail.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r-- | apps/theming/tests/Controller/UserThemeControllerTest.php | 9 | ||||
-rw-r--r-- | apps/theming/tests/Settings/PersonalTest.php | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/apps/theming/tests/Controller/UserThemeControllerTest.php b/apps/theming/tests/Controller/UserThemeControllerTest.php index 952cd012210..ffacf5108a5 100644 --- a/apps/theming/tests/Controller/UserThemeControllerTest.php +++ b/apps/theming/tests/Controller/UserThemeControllerTest.php @@ -22,8 +22,10 @@ */ namespace OCA\Theming\Tests\Controller; +use OCA\Theming\AppInfo\Application; use OCA\Theming\Controller\UserThemeController; use OCA\Theming\ITheme; +use OCA\Theming\Service\BackgroundService; use OCA\Theming\Themes\DarkHighContrastTheme; use OCA\Theming\Themes\DarkTheme; use OCA\Theming\Themes\DefaultTheme; @@ -52,6 +54,9 @@ class UserThemeControllerTest extends TestCase { private $userSession; /** @var ThemeService|MockObject */ private $themesService; + /** @var BackgroundService|MockObject */ + private $backgroundService; + /** @var ITheme[] */ private $themes; @@ -61,6 +66,7 @@ class UserThemeControllerTest extends TestCase { $this->config = $this->createMock(IConfig::class); $this->userSession = $this->createMock(IUserSession::class); $this->themesService = $this->createMock(ThemesService::class); + $this->backgroundService = $this->createMock(BackgroundService::class); $this->themes = [ 'default' => $this->createMock(DefaultTheme::class), @@ -80,11 +86,12 @@ class UserThemeControllerTest extends TestCase { ->willReturn('user'); $this->userThemeController = new UserThemeController( - 'theming', + Application::APP_ID, $this->request, $this->config, $this->userSession, $this->themesService, + $this->backgroundService, ); parent::setUp(); diff --git a/apps/theming/tests/Settings/PersonalTest.php b/apps/theming/tests/Settings/PersonalTest.php index a5409e5f57a..3051a210353 100644 --- a/apps/theming/tests/Settings/PersonalTest.php +++ b/apps/theming/tests/Settings/PersonalTest.php @@ -45,12 +45,10 @@ use OCP\AppFramework\Services\IInitialState; use OCP\IConfig; use OCP\IL10N; use OCP\IURLGenerator; -use OCP\IUserSession; use Test\TestCase; class PersonalTest extends TestCase { private IConfig $config; - private IUserSession $userSession; private ThemesService $themesService; private IInitialState $initialStateService; @@ -60,7 +58,6 @@ class PersonalTest extends TestCase { protected function setUp(): void { parent::setUp(); $this->config = $this->createMock(IConfig::class); - $this->userSession = $this->createMock(IUserSession::class); $this->themesService = $this->createMock(ThemesService::class); $this->initialStateService = $this->createMock(IInitialState::class); @@ -74,7 +71,6 @@ class PersonalTest extends TestCase { $this->admin = new Personal( Application::APP_ID, $this->config, - $this->userSession, $this->themesService, $this->initialStateService ); |