diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-11-08 17:01:17 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-11-16 09:46:20 +0100 |
commit | e6b7fa6cae5b0db1570fda71d5186bec362432a9 (patch) | |
tree | a272f18ce0e2d7fcf58aeb55f99e793fbb134684 /apps/theming/tests | |
parent | 62919ac81eb856a15c0131f3cf948bb11b2a5b1f (diff) | |
download | nextcloud-server-e6b7fa6cae5b0db1570fda71d5186bec362432a9.tar.gz nextcloud-server-e6b7fa6cae5b0db1570fda71d5186bec362432a9.zip |
Fix logo invert
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r-- | apps/theming/tests/CapabilitiesTest.php | 3 | ||||
-rw-r--r-- | apps/theming/tests/IconBuilderTest.php | 2 | ||||
-rw-r--r-- | apps/theming/tests/Themes/DefaultThemeTest.php | 3 | ||||
-rw-r--r-- | apps/theming/tests/Themes/DyslexiaFontTest.php | 5 | ||||
-rw-r--r-- | apps/theming/tests/UtilTest.php | 6 |
5 files changed, 13 insertions, 6 deletions
diff --git a/apps/theming/tests/CapabilitiesTest.php b/apps/theming/tests/CapabilitiesTest.php index 41a4a6aa981..1de439a70e9 100644 --- a/apps/theming/tests/CapabilitiesTest.php +++ b/apps/theming/tests/CapabilitiesTest.php @@ -29,6 +29,7 @@ namespace OCA\Theming\Tests; use OCA\Theming\Capabilities; +use OCA\Theming\ImageManager; use OCA\Theming\ThemingDefaults; use OCA\Theming\Util; use OCP\App\IAppManager; @@ -173,7 +174,7 @@ class CapabilitiesTest extends TestCase { ->method('getTextColorPrimary') ->willReturn($textColor); - $util = new Util($this->config, $this->createMock(IAppManager::class), $this->createMock(IAppData::class)); + $util = new Util($this->config, $this->createMock(IAppManager::class), $this->createMock(IAppData::class), $this->createMock(ImageManager::class)); $this->util->expects($this->exactly(3)) ->method('elementColor') ->with($color) diff --git a/apps/theming/tests/IconBuilderTest.php b/apps/theming/tests/IconBuilderTest.php index f4ad5bef4ac..6edd6a05525 100644 --- a/apps/theming/tests/IconBuilderTest.php +++ b/apps/theming/tests/IconBuilderTest.php @@ -63,7 +63,7 @@ class IconBuilderTest extends TestCase { $this->themingDefaults = $this->createMock(ThemingDefaults::class); $this->appManager = $this->createMock(IAppManager::class); $this->imageManager = $this->createMock(ImageManager::class); - $this->util = new Util($this->config, $this->appManager, $this->appData); + $this->util = new Util($this->config, $this->appManager, $this->appData, $this->imageManager); $this->iconBuilder = new IconBuilder($this->themingDefaults, $this->util, $this->imageManager); } diff --git a/apps/theming/tests/Themes/DefaultThemeTest.php b/apps/theming/tests/Themes/DefaultThemeTest.php index 73e5b14683a..4471dddb01e 100644 --- a/apps/theming/tests/Themes/DefaultThemeTest.php +++ b/apps/theming/tests/Themes/DefaultThemeTest.php @@ -66,7 +66,8 @@ class DefaultThemeTest extends TestCase { $util = new Util( $this->config, $this->appManager, - $this->createMock(IAppData::class) + $this->createMock(IAppData::class), + $this->imageManager ); $this->themingDefaults diff --git a/apps/theming/tests/Themes/DyslexiaFontTest.php b/apps/theming/tests/Themes/DyslexiaFontTest.php index 3e92d03e473..4714d9751f4 100644 --- a/apps/theming/tests/Themes/DyslexiaFontTest.php +++ b/apps/theming/tests/Themes/DyslexiaFontTest.php @@ -68,8 +68,9 @@ class DyslexiaFontTest extends TestCase { $util = new Util( $this->config, - $this->createMock(AppManager::class), - $this->createMock(IAppData::class) + $this->appManager, + $this->createMock(IAppData::class), + $this->imageManager ); $userSession = $this->createMock(IUserSession::class); diff --git a/apps/theming/tests/UtilTest.php b/apps/theming/tests/UtilTest.php index 914ad8b073f..8f6d972a2fc 100644 --- a/apps/theming/tests/UtilTest.php +++ b/apps/theming/tests/UtilTest.php @@ -27,6 +27,7 @@ */ namespace OCA\Theming\Tests; +use OCA\Theming\ImageManager; use OCA\Theming\Util; use OCP\App\IAppManager; use OCP\Files\IAppData; @@ -46,13 +47,16 @@ class UtilTest extends TestCase { protected $appData; /** @var IAppManager */ protected $appManager; + /** @var ImageManager */ + protected $imageManager; protected function setUp(): void { parent::setUp(); $this->config = $this->createMock(IConfig::class); $this->appData = $this->createMock(IAppData::class); $this->appManager = $this->createMock(IAppManager::class); - $this->util = new Util($this->config, $this->appManager, $this->appData); + $this->imageManager = $this->createMock(ImageManager::class); + $this->util = new Util($this->config, $this->appManager, $this->appData, $this->imageManager); } public function dataInvertTextColor() { |