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