ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
SkillInternalFactoryServiceTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
28 
32 class SkillInternalFactoryServiceTest extends TestCase
33 {
34  protected Service\SkillInternalFactoryService $factory;
35  protected Profile\SkillProfileFactory $profile_fac;
36  protected Personal\PersonalSkillFactory $personal_fac;
37  protected Tree\SkillTreeFactory $tree_fac;
38  protected Resource\SkillResourceFactory $resource_fac;
39 
40  protected function setUp(): void
41  {
42  parent::setUp();
43 
44  $this->factory = new Service\SkillInternalFactoryService();
45 
46  $this->profile_fac = $this->factory->profile();
47  $this->personal_fac = $this->factory->personal();
48  $this->tree_fac = $this->factory->tree();
49  $this->resource_fac = $this->factory->resource();
50  }
51 
52  public function testFactoryInstances(): void
53  {
54  $this->assertInstanceOf(Profile\SkillProfileFactory::class, $this->profile_fac);
55  $this->assertInstanceOf(Personal\PersonalSkillFactory::class, $this->personal_fac);
56  $this->assertInstanceOf(Tree\SkillTreeFactory::class, $this->tree_fac);
57  $this->assertInstanceOf(\ILIAS\Skill\Resource\SkillResourceFactory::class, $this->resource_fac);
58  }
59 }
Class ChatMainBarProvider .
Service SkillInternalFactoryService $factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...