ILIAS  release_7 Revision v7.30-3-g800a261c036
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
4require_once __DIR__ . '/bootstrap.php';
5
10{
11 public function testGetEntries()
12 {
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}
An exception for terminatinating execution or to throw for unit testing.
Derived task data object.
Base test class for tasks tests.
$factory
Definition: metadata.php:58
$service
Definition: result.php:17