ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SkillInternalFactoryServiceTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Skill\Service;
22
23use PHPUnit\Framework\TestCase;
28
32class SkillInternalFactoryServiceTest extends TestCase
33{
39
40 protected function setUp(): void
41 {
42 parent::setUp();
43
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(Resource\SkillResourceFactory::class, $this->resource_fac);
58 }
59}
factory()