blob: 551d9b104d0c62c857eee0962f261f2952552b9f (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<?php
require_once 'tests/units/BaseProcedureTest.php';
use Kanboard\Core\Plugin\Loader;
use Kanboard\
use Kanboard\Plugin\Timetrackingeditor\SubtasktimetrackingCreationModel;
use Kanboard\Plugin\Timetrackingeditor\SubtasktimetrackingEditModel;
class TimetrackingeditorTest extends BaseProcedureTest
{
protected $projectName = 'My project to test time tracking';
protected $project_id;
protected $task_id;
protected $subtask_id;
public function setUp()
{
parent::setUp();
$plugin = new Load($this->container);
$plugin->scan();
}
public function testAll()
{
$this->assertCreateTeamProject();
$this->task_id = $this->app->createTask(array('project_id' => $this->projectId, 'title' => 'Task 1'));
$this->subtask_id = $this->app->createSubTask(array('project_id' => $this->projectId, 'task_id' => $this->task_id, 'title' => 'Subtask 1'));
$this->assertNotFalse($this->task_id);
$this->assertNotFalse($this->subtask_id);
$this->testCreateEntry();
}
public function testCreateEntry()
{
}
}
|