summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests/lib/TemplateTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/tests/lib/TemplateTest.php')
-rw-r--r--apps/theming/tests/lib/TemplateTest.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/theming/tests/lib/TemplateTest.php b/apps/theming/tests/lib/TemplateTest.php
index b9623e437b7..1ee860f93c4 100644
--- a/apps/theming/tests/lib/TemplateTest.php
+++ b/apps/theming/tests/lib/TemplateTest.php
@@ -91,6 +91,27 @@ class TemplateTest extends TestCase {
$this->assertEquals('MyCustomCloud', $this->template->getName());
}
+ public function testGetTitleWithDefault() {
+ $this->config
+ ->expects($this->once())
+ ->method('getAppValue')
+ ->with('theming', 'name', 'Nextcloud')
+ ->willReturn('Nextcloud');
+
+ $this->assertEquals('Nextcloud', $this->template->getTitle());
+ }
+
+ public function testGetTitleWithCustom() {
+ $this->config
+ ->expects($this->once())
+ ->method('getAppValue')
+ ->with('theming', 'name', 'Nextcloud')
+ ->willReturn('MyCustomCloud');
+
+ $this->assertEquals('MyCustomCloud', $this->template->getTitle());
+ }
+
+
public function testGetEntityWithDefault() {
$this->config
->expects($this->once())