Class BackgroundTaskTest.
More...
Class BackgroundTaskTest.
- Author
- Oskar Truffer ot@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Definition at line 16 of file TypeTest.php.
◆ testAncestors()
TypeTest::testAncestors |
( |
| ) |
|
Definition at line 18 of file TypeTest.php.
21 $ancestors = $integer->getAncestors();
23 $this->assertTrue($ancestors[0]->equals(
new SingleType(\ilObject::class)));
24 $this->assertTrue($ancestors[1]->equals(
new SingleType(\ilObjUser::class)));
◆ testListAncestor()
TypeTest::testListAncestor |
( |
| ) |
|
Definition at line 36 of file TypeTest.php.
39 $ancestors = $integerList->getAncestors();
41 $this->assertTrue($ancestors[0]->equals(
new ListType(\ilObject::class)));
42 $this->assertTrue($ancestors[1]->equals(
new ListType(\ilObjUser::class)));
◆ testListOfLists()
TypeTest::testListOfLists |
( |
| ) |
|
Definition at line 45 of file TypeTest.php.
References $list.
48 $list1 =
new ListType(\ilObject::class);
52 $this->assertTrue($listlist->equals(
new ListType(
new ListType(\ilObjUser::class))));
53 $this->assertTrue($listlist->isExtensionOf($listlist1));
54 $this->assertFalse($listlist1->isExtensionOf($listlist));
if(isset($_REQUEST['delete'])) $list
◆ testListSubtypes()
TypeTest::testListSubtypes |
( |
| ) |
|
Definition at line 27 of file TypeTest.php.
32 $this->assertTrue($scalarList3->isExtensionOf($scalarList));
33 $this->assertTrue($scalarList->isExtensionOf($scalarList));
◆ testTuple()
Definition at line 57 of file TypeTest.php.
62 $this->assertEquals($tuple1->__toString(),
'(ilObjUser, [ilObject])');
63 $this->assertTrue($tuple2->isExtensionOf($tuple1));
64 $this->assertFalse($tuple1->isExtensionOf($tuple2));
The documentation for this class was generated from the following file: