Test class ilSkillCategory.
More...
◆ setGlobalVariable()
| SkillCategoryTest::setGlobalVariable |
( |
string |
$name, |
|
|
|
$value |
|
) |
| |
|
protected |
Definition at line 32 of file SkillCategoryTest.php.
32 : void
33 {
35
37
40 return $value;
41 };
42 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Customizing of pimple-DIC for ILIAS.
References $c, $DIC, $GLOBALS, and $name.
Referenced by setUp().
◆ setUp()
| SkillCategoryTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 45 of file SkillCategoryTest.php.
45 : void
46 {
47 parent::setUp();
48
51
52 $db = $this->createMock(ilDBInterface::class);
54 "ilDB",
55 $db
56 );
57 $tree = $this->createMock(ilTree::class);
59 "tree",
60 $tree
61 );
62 $rbac = $this->createMock(ilRbacSystem::class);
64 "rbacsystem",
65 $rbac
66 );
67 $user = $this->createMock(ilObjUser::class);
69 "ilUser",
70 $user
71 );
72
74 }
setGlobalVariable(string $name, $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
References $dic, $GLOBALS, and setGlobalVariable().
◆ tearDown()
| SkillCategoryTest::tearDown |
( |
| ) |
|
|
protected |
◆ testProperties()
| SkillCategoryTest::testProperties |
( |
| ) |
|
Definition at line 80 of file SkillCategoryTest.php.
80 : void
81 {
84 $sk->setDescription("This is a description for a skill category.");
85 $sk->setSelfEvaluation(true);
86 $sk->setOrderNr(10);
87 $sk->setStatus(0);
88 $sk->setId(4);
89 $sk->setImportId("an_import_id");
90
91 $this->assertEquals(
92 "scat",
93 $sk->getType()
94 );
95 $this->assertEquals(
96 "A skill category",
97 $sk->getTitle()
98 );
99 $this->assertEquals(
100 "This is a description for a skill category.",
101 $sk->getDescription()
102 );
103 $this->assertEquals(
104 true,
105 $sk->getSelfEvaluation()
106 );
107 $this->assertEquals(
108 10,
109 $sk->getOrderNr()
110 );
111 $this->assertEquals(
112 0,
113 $sk->getStatus()
114 );
115 $this->assertEquals(
116 4,
117 $sk->getId()
118 );
119 $this->assertEquals(
120 "an_import_id",
121 $sk->getImportId()
122 );
123 }
ilSkillCategory $skill_category
setTitle(string $a_title)
References $skill_category, and ilSkillTreeNode\setTitle().
◆ $skill_category
The documentation for this class was generated from the following file: