ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
ilTermsOfServiceEntityFactoryTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilTermsOfServiceEntityFactoryTest
extends
ilTermsOfServiceBaseTest
26
{
27
public
function
testInstanceCanBeCreated
(): void
28
{
29
$factory
=
new
ilTermsOfServiceEntityFactory
();
30
31
$this->assertInstanceOf(ilTermsOfServiceEntityFactory::class,
$factory
);
32
}
33
34
public
function
testExceptionIsRaisedWhenUnknownEntityIsRequested
(): void
35
{
36
$this->expectException(InvalidArgumentException::class);
37
38
$factory
=
new
ilTermsOfServiceEntityFactory
();
39
$factory
->getByName(
'PHP Unit'
);
40
}
41
45
public
function
testAcceptanceEntityIsReturnedWhenRequestedByName
(): void
46
{
47
$factory
=
new
ilTermsOfServiceEntityFactory
();
48
49
$this->assertInstanceOf(
50
ilTermsOfServiceAcceptanceEntity::class,
51
$factory
->getByName(
'ilTermsOfServiceAcceptanceEntity'
)
52
);
53
}
54
}
ilTermsOfServiceEntityFactory
Class ilTermsOfServiceEntityFactory.
Definition:
class.ilTermsOfServiceEntityFactory.php:25
ilTermsOfServiceEntityFactoryTest\testAcceptanceEntityIsReturnedWhenRequestedByName
testAcceptanceEntityIsReturnedWhenRequestedByName()
Definition:
ilTermsOfServiceEntityFactoryTest.php:45
ilTermsOfServiceEntityFactoryTest\testExceptionIsRaisedWhenUnknownEntityIsRequested
testExceptionIsRaisedWhenUnknownEntityIsRequested()
Definition:
ilTermsOfServiceEntityFactoryTest.php:34
ilTermsOfServiceEntityFactoryTest
Class ilTermsOfServiceEntityFactoryTest.
Definition:
ilTermsOfServiceEntityFactoryTest.php:25
ilTermsOfServiceBaseTest
Class ilTermsOfServiceBaseTest.
Definition:
ilTermsOfServiceBaseTest.php:32
ilTermsOfServiceEntityFactoryTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilTermsOfServiceEntityFactoryTest.php:27
$factory
$factory
Definition:
metadata.php:75
Services
TermsOfService
test
factories
ilTermsOfServiceEntityFactoryTest.php
Generated on Mon Sep 1 2025 22:02:47 for ILIAS by
1.8.13 (using
Doxyfile
)