ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilTermsOfServiceEntityFactoryTest.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
class
ilTermsOfServiceEntityFactoryTest
extends
ilTermsOfServiceBaseTest
9
{
13
public
function
testInstanceCanBeCreated
() : void
14
{
15
$factory
=
new
ilTermsOfServiceEntityFactory
();
16
17
$this->assertInstanceOf(
'ilTermsOfServiceEntityFactory'
,
$factory
);
18
}
19
23
public
function
testExceptionIsRaisedWhenUnknownEntityIsRequested
() : void
24
{
25
$this->expectException(InvalidArgumentException::class);
26
27
$factory
=
new
ilTermsOfServiceEntityFactory
();
28
$factory
->getByName(
'PHP Unit'
);
29
}
30
34
public
function
testAcceptanceEntityIsReturnedWhenRequestedByName
() : void
35
{
36
$factory
=
new
ilTermsOfServiceEntityFactory
();
37
38
$this->assertInstanceOf(
39
'ilTermsOfServiceAcceptanceEntity'
,
40
$factory
->getByName(
'ilTermsOfServiceAcceptanceEntity'
)
41
);
42
}
43
}
ilTermsOfServiceEntityFactory
Class ilTermsOfServiceEntityFactory.
Definition:
class.ilTermsOfServiceEntityFactory.php:8
ilTermsOfServiceEntityFactoryTest\testAcceptanceEntityIsReturnedWhenRequestedByName
testAcceptanceEntityIsReturnedWhenRequestedByName()
Definition:
ilTermsOfServiceEntityFactoryTest.php:34
ilTermsOfServiceEntityFactoryTest\testExceptionIsRaisedWhenUnknownEntityIsRequested
testExceptionIsRaisedWhenUnknownEntityIsRequested()
Definition:
ilTermsOfServiceEntityFactoryTest.php:23
ilTermsOfServiceEntityFactoryTest
Class ilTermsOfServiceEntityFactoryTest.
Definition:
ilTermsOfServiceEntityFactoryTest.php:8
ilTermsOfServiceBaseTest
Class ilTermsOfServiceBaseTest.
Definition:
ilTermsOfServiceBaseTest.php:12
ilTermsOfServiceEntityFactoryTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilTermsOfServiceEntityFactoryTest.php:13
$factory
$factory
Definition:
metadata.php:58
Services
TermsOfService
test
factories
ilTermsOfServiceEntityFactoryTest.php
Generated on Sun Apr 6 2025 21:01:41 for ILIAS by
1.8.13 (using
Doxyfile
)