feat(tw): Added project_tag_suffix config to use tag for tw project

This commit is contained in:
Aerex
2020-05-28 11:54:21 -05:00
parent 9d78b4a8eb
commit 346e5c239b
13 changed files with 199 additions and 96 deletions

View File

@@ -14,13 +14,13 @@ class TaskwarriorTest extends TestCase {
* */
private $mockConsole;
function setUp() {
protected function setUp(): void {
$this->mockConsole = $this->createMock(AbstractConsole::class);
}
public function testVObjectToTask() {
$configs = ['taskwarrior' => ['taskrc' => '', 'taskdata' => '']];
$this->taskwarrior = new Taskwarrior($this->mockConsole, '', $configs);
$configs = ['taskwarrior' => ['taskrc' => '', 'taskdata' => ''], 'logger' => ['file' => '', 'level'=> 'DEBUG', 'enabled' => true]];
$this->taskwarrior = new Taskwarrior($this->mockConsole, $configs);
$vcalendar = new Calendar([
'VTODO' => [
'SUMMARY' => 'Finish project',
@@ -33,7 +33,6 @@ class TaskwarriorTest extends TestCase {
'RRULE' => 'FREQ=MONTHLY'
]
]);
echo $vcalendar->VTODO->RRULE->getJsonValue()[0]['freq'];
$task = $this->taskwarrior->vObjectToTask($vcalendar->VTODO);
$this->assertArrayHasKey('uid', $task, 'task should have a uid');