diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-05-23 15:20:54 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-07-12 11:42:15 +0200 |
commit | ce5ad7e7f48751b25ef9dd377fbbface2adb30b4 (patch) | |
tree | 7a9b951dd6458071ac8db0fa016d7c8fe5a6a348 /apps/theming/tests | |
parent | d23bc9a99a6aa59aac9a0635ebbb7fa95fcba05a (diff) | |
download | nextcloud-server-ce5ad7e7f48751b25ef9dd377fbbface2adb30b4.tar.gz nextcloud-server-ce5ad7e7f48751b25ef9dd377fbbface2adb30b4.zip |
Prefer custom theme over theming app
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r-- | apps/theming/tests/UtilTest.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/theming/tests/UtilTest.php b/apps/theming/tests/UtilTest.php index de6690ffe0d..d81c253f98a 100644 --- a/apps/theming/tests/UtilTest.php +++ b/apps/theming/tests/UtilTest.php @@ -180,4 +180,24 @@ class UtilTest extends TestCase { $this->assertEquals($expected, $result); } + public function testIsAlreadyThemedFalse() { + $theme = $this->config->getSystemValue('theme', ''); + $this->config->expects($this->once()) + ->method('getSystemValue') + ->with('theme', '') + ->willReturn(''); + $actual = $this->util->isAlreadyThemed(); + $this->assertFalse($actual); + } + + public function testIsAlreadyThemedTrue() { + $theme = $this->config->getSystemValue('theme', ''); + $this->config->expects($this->once()) + ->method('getSystemValue') + ->with('theme', '') + ->willReturn('example'); + $actual = $this->util->isAlreadyThemed(); + $this->assertTrue($actual); + } + } |