ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SkillInternalPersonalFactoryTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Skill\Personal;
22
23use PHPUnit\Framework\TestCase;
24
29{
33
34 protected function setUp(): void
35 {
36 parent::setUp();
37
38 $this->factory = new PersonalSkillFactory();
39
40 $this->selected_skill = $this->factory->selectedUserSkill(0, "");
41 $this->material = $this->factory->assignedMaterial(0, 0, 0, 0, 0, 0);
42 }
43
44 public function testFactoryInstances(): void
45 {
46 $this->assertInstanceOf(SelectedUserSkill::class, $this->selected_skill);
47 $this->assertInstanceOf(AssignedMaterial::class, $this->material);
48 }
49}
factory()