fix tests

This commit is contained in:
DavidBadura
2015-07-08 11:55:42 +02:00
parent 44d518e95a
commit 2dbcb2ca6a
5 changed files with 34 additions and 18 deletions

View File

@@ -340,7 +340,17 @@ class TaskManager
{
$json = $this->taskwarrior->export($filter);
return $this->getSerializer()->deserialize($json, 'array<DavidBadura\Taskwarrior\Task>', 'json');
$tasks = $this->getSerializer()->deserialize($json, 'array<DavidBadura\Taskwarrior\Task>', 'json');
foreach ($tasks as $task) {
if ($task->getDependencies()) {
continue;
}
$task->setDependencies(array());
}
return $tasks;
}
/**
@@ -482,4 +492,4 @@ class TaskManager
{
return new self(new Taskwarrior());
}
}
}