예제 #1
0
 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);
     }
 }
예제 #2
0
 public function getTasks()
 {
     $filter = array("package", "=", $this->id);
     return TaskIterator::loadBy($filter, $this->configuration(), $this->database(), true);
 }