summaryrefslogtreecommitdiff
path: root/tests/units/ConfigTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/ConfigTest.php')
-rw-r--r--tests/units/ConfigTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/units/ConfigTest.php b/tests/units/ConfigTest.php
index b630f284..f93619d6 100644
--- a/tests/units/ConfigTest.php
+++ b/tests/units/ConfigTest.php
@@ -17,6 +17,7 @@ class ConfigTest extends Base
$this->assertEmpty($c->get('webhook_url_task_modification'));
$this->assertEmpty($c->get('webhook_url_task_creation'));
$this->assertEmpty($c->get('board_columns'));
+ $this->assertEmpty($c->get('application_url'));
$this->assertNotEmpty($c->get('webhook_token'));
$this->assertNotEmpty($c->get('api_token'));
@@ -55,4 +56,11 @@ class ConfigTest extends Base
session_id('');
unset($this->container['session']);
}
+
+ public function testSave()
+ {
+ $c = new Config($this->container);
+ $this->assertTrue($c->save(array('application_url' => 'http://localhost/')));
+ $this->assertEquals('http://localhost/', $c->get('application_url'));
+ }
}