ILIAS
release_8 Revision v8.24
◀ 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
}
ilTermsOfServiceBaseTest
Class ilTermsOfServiceBaseTest.
Definition:
ilTermsOfServiceBaseTest.php:33
ilTermsOfServiceEntityFactoryTest
Class ilTermsOfServiceEntityFactoryTest.
Definition:
ilTermsOfServiceEntityFactoryTest.php:26
ilTermsOfServiceEntityFactoryTest\testAcceptanceEntityIsReturnedWhenRequestedByName
testAcceptanceEntityIsReturnedWhenRequestedByName()
Definition:
ilTermsOfServiceEntityFactoryTest.php:45
ilTermsOfServiceEntityFactoryTest\testExceptionIsRaisedWhenUnknownEntityIsRequested
testExceptionIsRaisedWhenUnknownEntityIsRequested()
Definition:
ilTermsOfServiceEntityFactoryTest.php:34
ilTermsOfServiceEntityFactoryTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilTermsOfServiceEntityFactoryTest.php:27
ilTermsOfServiceEntityFactory
Class ilTermsOfServiceEntityFactory.
Definition:
class.ilTermsOfServiceEntityFactory.php:26
$factory
$factory
Definition:
metadata.php:75
Services
TermsOfService
test
factories
ilTermsOfServiceEntityFactoryTest.php
Generated on Mon Nov 3 2025 22:02:02 for ILIAS by
1.9.4 (using
Doxyfile
)