ILIAS  release_8 Revision v8.24
ilTestSkillEvaluationTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestSkillEvaluation(
34 $this->createMock(ilDBInterface::class),
35 0,
36 0,
37 $this->createMock(\ILIAS\Skill\Service\SkillProfileService::class)
38 );
39 }
40
42 {
43 $this->assertInstanceOf(ilTestSkillEvaluation::class, $this->testObj);
44 }
45
46 public function testUserId(): void
47 {
48 $this->testObj->setUserId(125);
49 $this->assertEquals(125, $this->testObj->getUserId());
50 }
51
52 public function testActiveId(): void
53 {
54 $this->testObj->setActiveId(125);
55 $this->assertEquals(125, $this->testObj->getActiveId());
56 }
57
58 public function testPass(): void
59 {
60 $this->testObj->setPass(125);
61 $this->assertEquals(125, $this->testObj->getPass());
62 }
63
65 {
66 $this->testObj->setNumRequiredBookingsForSkillTriggering(125);
67 $this->assertEquals(125, $this->testObj->getNumRequiredBookingsForSkillTriggering());
68 }
69}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.