diff options
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(); |