ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDerivedTaskCollectorTest.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once __DIR__ . '/bootstrap.php';
5 
10 {
11  public function testGetEntries()
12  {
14  $service = $this->getTaskServiceMock();
15  $factory = $service->derived()->factory();
16 
17  $collector = $factory->collector();
18 
19  $entries = $collector->getEntries(0);
20 
21  $this->assertTrue($entries[0] instanceof ilDerivedTask);
22  $this->assertEquals("title", $entries[0]->getTitle());
23  }
24 }
Derived task data object.
$service
Definition: result.php:17
Base test class for tasks tests.
$factory
Definition: metadata.php:58