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

@@ -301,6 +301,18 @@ class Task
$this->depends->removeElement($task);
}
/**
* @param Task[] $tasks
*/
public function setDependencies(array $tasks)
{
$this->depends = new ArrayCollection();
foreach ($tasks as $task) {
$this->addDependency($task);
}
}
/**
* @return Recurring
*/
@@ -462,4 +474,4 @@ class Task
$this->entry = new Carbon('now');
$this->status = self::STATUS_PENDING;
}
}
}