ILIAS  release_8 Revision v8.24
ilTermsOfServiceEntityFactoryTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 public function testInstanceCanBeCreated(): void
28 {
30
31 $this->assertInstanceOf(ilTermsOfServiceEntityFactory::class, $factory);
32 }
33
35 {
36 $this->expectException(InvalidArgumentException::class);
37
39 $factory->getByName('PHP Unit');
40 }
41
46 {
48
49 $this->assertInstanceOf(
50 ilTermsOfServiceAcceptanceEntity::class,
51 $factory->getByName('ilTermsOfServiceAcceptanceEntity')
52 );
53 }
54}
Class ilTermsOfServiceBaseTest.
Class ilTermsOfServiceEntityFactoryTest.
Class ilTermsOfServiceEntityFactory.
$factory
Definition: metadata.php:75