summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-30 19:43:34 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-30 19:43:34 -0500
commit81df6a36b4b77fcf3f76658d7359fae0d541cf61 (patch)
treec4e380b9b97903827cad1aabf48e0b58c49d1c6e /tests
parent4bba5be037d4ce3ebaefedaac0d840bce9206551 (diff)
Add getTimezone() procedure to the API
Diffstat (limited to 'tests')
-rw-r--r--tests/functionals/ApiTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functionals/ApiTest.php b/tests/functionals/ApiTest.php
index ece7b46d..a8f8869b 100644
--- a/tests/functionals/ApiTest.php
+++ b/tests/functionals/ApiTest.php
@@ -29,6 +29,7 @@ class Api extends PHPUnit_Framework_TestCase
$service->getInstance();
$pdo->exec("UPDATE settings SET value='".API_KEY."' WHERE option='api_token'");
+ $pdo->exec("UPDATE settings SET value='Europe/Paris' WHERE option='application_timezone'");
$pdo = null;
}
@@ -48,6 +49,12 @@ class Api extends PHPUnit_Framework_TestCase
return $tasks[0]['id'];
}
+ public function testGetTimezone()
+ {
+ $timezone = $this->client->getTimezone();
+ $this->assertEquals('Europe/Paris', $timezone);
+ }
+
public function testRemoveAll()
{
$projects = $this->client->getAllProjects();