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); } }