summaryrefslogtreecommitdiff
path: root/tests/functionals
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-09 15:15:04 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-09 15:15:04 +0200
commitef95c7c28479a22e41fff35a893f05eb084e1f2c (patch)
tree0ad91fa529ef4fc86be8df106c54ba4ff8053ea1 /tests/functionals
parent685d1cc44cea32c6dbab95d05c882aa808bcab44 (diff)
Improve project api procedures
Diffstat (limited to 'tests/functionals')
-rw-r--r--tests/functionals/ApiTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functionals/ApiTest.php b/tests/functionals/ApiTest.php
index 9d347527..bc0bbe42 100644
--- a/tests/functionals/ApiTest.php
+++ b/tests/functionals/ApiTest.php
@@ -24,7 +24,7 @@ class Api extends PHPUnit_Framework_TestCase
if ($projects) {
foreach ($projects as $project) {
- $this->client->removeProject($project['id']);
+ $this->assertTrue($this->client->removeProject($project['id']));
}
}
}
@@ -45,13 +45,13 @@ class Api extends PHPUnit_Framework_TestCase
{
$project = $this->client->getProjectById(1);
$this->assertNotEmpty($project);
- $this->assertTrue($this->client->updateProject(array('id' => 1, 'name' => 'API test 2', 'is_active' => 0)));
+ $this->assertTrue($this->client->execute('updateProject', array('id' => 1, 'name' => 'API test 2', 'is_active' => 0)));
$project = $this->client->getProjectById(1);
$this->assertEquals('API test 2', $project['name']);
$this->assertEquals(0, $project['is_active']);
- $this->assertTrue($this->client->updateProject(array('id' => 1, 'name' => 'API test', 'is_active' => 1)));
+ $this->assertTrue($this->client->execute('updateProject', array('id' => 1, 'name' => 'API test', 'is_active' => 1)));
$project = $this->client->getProjectById(1);
$this->assertEquals('API test', $project['name']);