summaryrefslogtreecommitdiff
path: root/tests/units/ConfigTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-20 10:48:47 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-20 10:48:47 -0400
commitcb0916d10e4a42a62f0ac8c69ecb4b7a15f398b4 (patch)
treed5344b06ee0b87224ec157f44bf513ca7e353b5b /tests/units/ConfigTest.php
parent7056d14c95888eebe90d023524d4a63e562a9f64 (diff)
Add automatic action to send a task by email
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'));
+ }
}