From 3de00af08850914a482db250346282aef7ace61f Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 9 Dec 2014 19:43:24 -0500 Subject: Improve functional test for api --- tests/functionals/ApiTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/functionals') 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() -- cgit v1.2.3