ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSkillLevelThresholdTest.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 ilTestSkillLevelThreshold($this->createMock(ilDBInterface::class));
34  }
35 
37  {
38  $this->assertInstanceOf(ilTestSkillLevelThreshold::class, $this->testObj);
39  }
40 
41  public function testTestId(): void
42  {
43  $testId = 12;
44  $this->testObj->setTestId($testId);
45  $this->assertEquals($testId, $this->testObj->getTestId());
46  }
47 
48  public function testSkillBaseId(): void
49  {
50  $skillBaseId = 12;
51  $this->testObj->setSkillBaseId($skillBaseId);
52  $this->assertEquals($skillBaseId, $this->testObj->getSkillBaseId());
53  }
54 
55  public function testSkillTrefId(): void
56  {
57  $skillTrefId = 12;
58  $this->testObj->setSkillTrefId($skillTrefId);
59  $this->assertEquals($skillTrefId, $this->testObj->getSkillTrefId());
60  }
61 
62  public function testSkillLevelId(): void
63  {
64  $skillLevelId = 12;
65  $this->testObj->setSkillLevelId($skillLevelId);
66  $this->assertEquals($skillLevelId, $this->testObj->getSkillLevelId());
67  }
68 
69  public function testThreshold(): void
70  {
71  $threshold = 12;
72  $this->testObj->setThreshold($threshold);
73  $this->assertEquals($threshold, $this->testObj->getThreshold());
74  }
75 }
Class ilTestSkillLevelThresholdTest.