ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestSkillEvaluationTest.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 ilTestSkillEvaluation(
34  $this->createMock(ilDBInterface::class),
35  $this->createMock(\ILIAS\DI\LoggingServices::class),
36  0,
37  0,
38  $this->createMock(\ILIAS\Skill\Service\SkillProfileService::class),
39  $this->createMock(\ILIAS\Skill\Service\SkillPersonalService::class)
40  );
41  }
42 
44  {
45  $this->assertInstanceOf(ilTestSkillEvaluation::class, $this->testObj);
46  }
47 
48  public function testUserId(): void
49  {
50  $this->testObj->setUserId(125);
51  $this->assertEquals(125, $this->testObj->getUserId());
52  }
53 
54  public function testActiveId(): void
55  {
56  $this->testObj->setActiveId(125);
57  $this->assertEquals(125, $this->testObj->getActiveId());
58  }
59 
60  public function testPass(): void
61  {
62  $this->testObj->setPass(125);
63  $this->assertEquals(125, $this->testObj->getPass());
64  }
65 
67  {
68  $this->testObj->setNumRequiredBookingsForSkillTriggering(125);
69  $this->assertEquals(125, $this->testObj->getNumRequiredBookingsForSkillTriggering());
70  }
71 }
Class ChatMainBarProvider .
Class ilTestSkillEvaluationTest.
Class HTTPServicesTest.
Class ilTestBaseClass.