public function testListAndDeletePackages() { $tasks = TaskIterator::load($this->configuration(), $this->database(), true); foreach ($tasks as $task) { $this->assertInstanceOf('Comodojo\\Task\\Controller', $task); $result = $task->delete(); $this->assertTrue($result); } }
public function getTasks() { $filter = array("package", "=", $this->id); return TaskIterator::loadBy($filter, $this->configuration(), $this->database(), true); }