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