Add API calls to manage tags

This commit is contained in:
Frederic Guillot
2016-12-17 17:02:29 -05:00
parent ddeb89e2c6
commit 1186104469
10 changed files with 189 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
<?php
require_once __DIR__.'/BaseProcedureTest.php';
class TaskTagProcedureTest extends BaseProcedureTest
{
protected $projectName = 'My project with tasks and tags';
public function testAll()
{
$this->assertCreateTeamProject();
$this->assertCreateTask();
$this->assertSetTaskTags();
$this->assertGetTaskTags();
}
public function assertSetTaskTags()
{
$this->assertTrue($this->app->setTaskTags($this->projectId, $this->taskId, array('tag1', 'tag2')));
}
public function assertGetTaskTags()
{
$tags = $this->app->getTaskTags($this->taskId);
$this->assertEquals(array('tag1', 'tag2'), array_values($tags));
}
}