ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestGradingMessageBuilderTest.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 
33  $this->testObj = new ilTestGradingMessageBuilder(
34  $this->createMock(ilLanguage::class),
35  $this->createMock(ilGlobalTemplate::class),
36  $this->getTestObjMock()
37  );
38  }
39 
41  {
42  $this->assertInstanceOf(ilTestGradingMessageBuilder::class, $this->testObj);
43  }
44 
45  public function testActiveId(): void
46  {
47  $activeId = 2120;
48  $this->testObj->setActiveId($activeId);
49  $this->assertEquals($activeId, $this->testObj->getActiveId());
50  }
51 }
Class ilTestGradingMessageBuilderTest.