ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
SkillInternalProfileFactoryTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
24 
28 class SkillInternalProfileFactoryTest extends TestCase
29 {
30  protected Profile\SkillProfileFactory $factory;
31  protected Profile\SkillProfile $profile;
32  protected Profile\SkillProfileLevel $profile_level;
33  protected Profile\SkillProfileCompletion $profile_completion;
34  protected Profile\SkillProfileUserAssignment $profile_user_assignment;
35  protected Profile\SkillProfileRoleAssignment $profile_role_assignment;
36 
37  protected function setUp(): void
38  {
39  parent::setUp();
40 
41  $this->factory = new Profile\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(Profile\SkillProfile::class, $this->profile);
53  $this->assertInstanceOf(Profile\SkillProfileLevel::class, $this->profile_level);
54  $this->assertInstanceOf(Profile\SkillProfileCompletion::class, $this->profile_completion);
55  $this->assertInstanceOf(Profile\SkillProfileUserAssignment::class, $this->profile_user_assignment);
56  $this->assertInstanceOf(Profile\SkillProfileRoleAssignment::class, $this->profile_role_assignment);
57  }
58 }
Profile SkillProfileUserAssignment $profile_user_assignment
Profile SkillProfileCompletion $profile_completion
Profile SkillProfileRoleAssignment $profile_role_assignment
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...