ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SkillInternalProfileFactoryTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Skill\Profile;
22 
24 
28 class SkillInternalProfileFactoryTest extends TestCase
29 {
36 
37  protected function setUp(): void
38  {
39  parent::setUp();
40 
41  $this->factory = new SkillProfileFactory();
42 
43  $this->profile = $this->factory->profile(0, "", "", 0);
44  $this->profile_level = $this->factory->profileLevel(0, 0, 0, 0, 0);
45  $this->profile_completion = $this->factory->profileCompletion(0, 0, "", false);
46  $this->profile_user_assignment = $this->factory->profileUserAssignment("", 0);
47  $this->profile_role_assignment = $this->factory->profileRoleAssignment("", 0, "", "", 0);
48  }
49 
50  public function testFactoryInstances(): void
51  {
52  $this->assertInstanceOf(SkillProfile::class, $this->profile);
53  $this->assertInstanceOf(SkillProfileLevel::class, $this->profile_level);
54  $this->assertInstanceOf(SkillProfileCompletion::class, $this->profile_completion);
55  $this->assertInstanceOf(SkillProfileUserAssignment::class, $this->profile_user_assignment);
56  $this->assertInstanceOf(SkillProfileRoleAssignment::class, $this->profile_role_assignment);
57  }
58 }
factory()