From 2e6a8d435f4fa73882224b465716360ee2e7c693 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 12 Sep 2014 17:35:48 +0200 Subject: Add settings field to control project columns (pull-request #244) --- tests/units/ConfigTest.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/units/ConfigTest.php (limited to 'tests/units/ConfigTest.php') diff --git a/tests/units/ConfigTest.php b/tests/units/ConfigTest.php new file mode 100644 index 00000000..7298936e --- /dev/null +++ b/tests/units/ConfigTest.php @@ -0,0 +1,32 @@ +registry); + + $this->assertEquals('en_US', $c->get('language')); + $this->assertEquals('UTC', $c->get('timezone')); + + $this->assertEmpty($c->get('webhooks_url_task_modification')); + $this->assertEmpty($c->get('webhooks_url_task_creation')); + $this->assertEmpty($c->get('default_columns')); + + $this->assertNotEmpty($c->get('webhooks_token')); + $this->assertNotEmpty($c->get('api_token')); + } + + public function testGet() + { + $c = new Config($this->registry); + + $this->assertEquals('', $c->get('default_columns')); + $this->assertEquals('test', $c->get('default_columns', 'test')); + $this->assertEquals(0, $c->get('default_columns', 0)); + } +} -- cgit v1.2.3