ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjTestXMLParserTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilObjTestXMLParser();
34 }
35
37 {
38 $this->assertInstanceOf(ilObjTestXMLParser::class, $this->testObj);
39 }
40
41 public function testTestOBJ(): void
42 {
43 $objTest_mock = $this->getTestObjMock();
44 $this->assertNull($this->testObj->getTestOBJ());
45
46 $this->testObj->setTestOBJ($objTest_mock);
47 $this->assertEquals($objTest_mock, $this->testObj->getTestOBJ());
48 }
49
50 public function testImportMapping(): void
51 {
52 $importMapping_mock = $this->createMock(ilImportMapping::class);
53 $this->assertNull($this->testObj->getImportMapping());
54
55 $this->testObj->setImportMapping($importMapping_mock);
56 $this->assertEquals($importMapping_mock, $this->testObj->getImportMapping());
57 }
58}
Class ilObjTestXMLParserTest.
Class ilTestBaseClass.