summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-09 19:43:24 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-09 19:43:24 -0500
commit3de00af08850914a482db250346282aef7ace61f (patch)
tree19cd370fb3b941f1f361f6382ca6503ad5d0d904 /tests
parent076034c282c2b2aafb6489ef0d22cd73a3df1edc (diff)
Improve functional test for api
Diffstat (limited to 'tests')
-rw-r--r--tests/functionals/ApiTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functionals/ApiTest.php b/tests/functionals/ApiTest.php
index a8f8869b..da6b62f5 100644
--- a/tests/functionals/ApiTest.php
+++ b/tests/functionals/ApiTest.php
@@ -68,7 +68,9 @@ class Api extends PHPUnit_Framework_TestCase
public function testCreateProject()
{
- $this->assertTrue($this->client->createProject('API test'));
+ $project_id = $this->client->createProject('API test');
+ $this->assertNotFalse($project_id);
+ $this->assertInternalType('int', $project_id);
}
public function testGetProjectById()