ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
SkillInternalProfileFactoryTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 namespace ILIAS\Skill\Profile;
23 
25 
29 class SkillInternalProfileFactoryTest extends TestCase
30 {
37 
38  protected function setUp(): void
39  {
40  parent::setUp();
41 
42  $this->factory = new SkillProfileFactory();
43 
44  $this->profile = $this->factory->profile(0, "", "", 0);
45  $this->profile_level = $this->factory->profileLevel(0, 0, 0, 0, 0);
46  $this->profile_completion = $this->factory->profileCompletion(0, 0, "", false);
47  $this->profile_user_assignment = $this->factory->profileUserAssignment("", 0);
48  $this->profile_role_assignment = $this->factory->profileRoleAssignment("", 0, "", "", 0);
49  }
50 
51  public function testFactoryInstances(): void
52  {
53  $this->assertInstanceOf(SkillProfile::class, $this->profile);
54  $this->assertInstanceOf(SkillProfileLevel::class, $this->profile_level);
55  $this->assertInstanceOf(SkillProfileCompletion::class, $this->profile_completion);
56  $this->assertInstanceOf(SkillProfileUserAssignment::class, $this->profile_user_assignment);
57  $this->assertInstanceOf(SkillProfileRoleAssignment::class, $this->profile_role_assignment);
58  }
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...