ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestSkillLevelThresholdTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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  $this->testObj->setTestId(12);
44  $this->assertEquals(12, $this->testObj->getTestId());
45  }
46 
47  public function testSkillBaseId(): void
48  {
49  $this->testObj->setSkillBaseId(12);
50  $this->assertEquals(12, $this->testObj->getSkillBaseId());
51  }
52 
53  public function testSkillTrefId(): void
54  {
55  $this->testObj->setSkillTrefId(12);
56  $this->assertEquals(12, $this->testObj->getSkillTrefId());
57  }
58 
59  public function testSkillLevelId(): void
60  {
61  $this->testObj->setSkillLevelId(12);
62  $this->assertEquals(12, $this->testObj->getSkillLevelId());
63  }
64 
65  public function testThreshold(): void
66  {
67  $this->testObj->setThreshold(12);
68  $this->assertEquals(12, $this->testObj->getThreshold());
69  }
70 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTestBaseClass.