blob: ae6139d3be130dd022ba938a3049712a4cc12c76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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));
}
}
|