diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-19 12:22:54 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-19 12:57:35 +0200 |
commit | 746710ad5b55127826bb52d5c9923002ea443b0a (patch) | |
tree | 52512cc33969beb89381471f5836abbcaa88b1a8 /apps/theming/tests/Themes | |
parent | ef760e0337018c8a45bb380d1a1d50f912ca23ee (diff) | |
download | nextcloud-server-746710ad5b55127826bb52d5c9923002ea443b0a.tar.gz nextcloud-server-746710ad5b55127826bb52d5c9923002ea443b0a.zip |
Fix tests
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/tests/Themes')
-rw-r--r-- | apps/theming/tests/Themes/DefaultThemeTest.php | 7 | ||||
-rw-r--r-- | apps/theming/tests/Themes/DyslexiaFontTest.php | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/apps/theming/tests/Themes/DefaultThemeTest.php b/apps/theming/tests/Themes/DefaultThemeTest.php index eafd66ef663..eb9f41d378f 100644 --- a/apps/theming/tests/Themes/DefaultThemeTest.php +++ b/apps/theming/tests/Themes/DefaultThemeTest.php @@ -28,6 +28,7 @@ use OCA\Theming\ITheme; use OCA\Theming\Themes\DefaultTheme; use OCA\Theming\ThemingDefaults; use OCA\Theming\Util; +use OCP\App\IAppManager; use OCP\Files\IAppData; use OCP\IConfig; use OCP\IL10N; @@ -48,6 +49,8 @@ class DefaultThemeTest extends TestCase { private $config; /** @var IL10N|MockObject */ private $l10n; + /** @var IAppManager|MockObject */ + private $appManager; private DefaultTheme $defaultTheme; @@ -58,10 +61,11 @@ class DefaultThemeTest extends TestCase { $this->imageManager = $this->createMock(ImageManager::class); $this->config = $this->createMock(IConfig::class); $this->l10n = $this->createMock(IL10N::class); + $this->appManager = $this->createMock(IAppManager::class); $util = new Util( $this->config, - $this->createMock(AppManager::class), + $this->appManager, $this->createMock(IAppData::class) ); @@ -97,6 +101,7 @@ class DefaultThemeTest extends TestCase { $this->imageManager, $this->config, $this->l10n, + $this->appManager, ); parent::setUp(); diff --git a/apps/theming/tests/Themes/DyslexiaFontTest.php b/apps/theming/tests/Themes/DyslexiaFontTest.php index 8a0df960205..1a0f0adebec 100644 --- a/apps/theming/tests/Themes/DyslexiaFontTest.php +++ b/apps/theming/tests/Themes/DyslexiaFontTest.php @@ -29,6 +29,7 @@ use OCA\Theming\ITheme; use OCA\Theming\Themes\DyslexiaFont; use OCA\Theming\ThemingDefaults; use OCA\Theming\Util; +use OCP\App\IAppManager; use OCP\Files\IAppData; use OCP\ICacheFactory; use OCP\IConfig; @@ -51,6 +52,8 @@ class DyslexiaFontTest extends TestCase { private $config; /** @var IL10N|MockObject */ private $l10n; + /** @var IAppManager|MockObject */ + private $appManager; private DyslexiaFont $dyslexiaFont; @@ -60,6 +63,7 @@ class DyslexiaFontTest extends TestCase { $this->imageManager = $this->createMock(ImageManager::class); $this->config = $this->createMock(IConfig::class); $this->l10n = $this->createMock(IL10N::class); + $this->appManager = $this->createMock(IAppManager::class); $util = new Util( $this->config, @@ -104,6 +108,7 @@ class DyslexiaFontTest extends TestCase { $this->imageManager, $this->config, $this->l10n, + $this->appManager, ); parent::setUp(); |