fix tests
This commit is contained in:
14
src/Task.php
14
src/Task.php
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user