ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestResultHeaderLabelBuilderTest.php
Go to the documentation of this file.
1 <?php
2 
24 {
26 
27  private $lng_mock;
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->lng_mock = $this->createMock(ilLanguage::class);
34 
35  $this->testObj = new ilTestResultHeaderLabelBuilder(
36  $this->lng_mock,
37  $this->createMock(ilObjectDataCache::class)
38  );
39  }
40 
42  {
43  $this->assertInstanceOf(ilTestResultHeaderLabelBuilder::class, $this->testObj);
44  }
45 
46  public function testObjectiveOrientedContainerId(): void
47  {
48  $this->testObj->setObjectiveOrientedContainerId(5);
49  $this->assertEquals(5, $this->testObj->getObjectiveOrientedContainerId());
50  }
51 
52  public function testTestObjId(): void
53  {
54  $this->testObj->setTestObjId(5);
55  $this->assertEquals(5, $this->testObj->getTestObjId());
56  }
57 
58  public function testTestRefId(): void
59  {
60  $this->testObj->setTestRefId(5);
61  $this->assertEquals(5, $this->testObj->getTestRefId());
62  }
63 
64  public function testUserId(): void
65  {
66  $this->testObj->setUserId(5);
67  $this->assertEquals(5, $this->testObj->getUserId());
68  }
69 }
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...