ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
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
k
l
m
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
2
/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceEntityFactory.php'
;
5
require_once
'Services/TermsOfService/classes/class.ilTermsOfServiceDataGatewayFactory.php'
;
6
11
class
ilTermsOfServiceEntityFactoryTest
extends
PHPUnit_Framework_TestCase
12
{
16
protected
$backupGlobals
=
false
;
17
21
public
function
setUp
()
22
{
23
}
24
28
public
function
testInstanceCanBeCreated
()
29
{
30
$factory =
new
ilTermsOfServiceEntityFactory
();
31
$this->assertInstanceOf(
'ilTermsOfServiceEntityFactory'
, $factory);
32
}
33
37
public
function
testExceptionIsRaisedWhenUnknowEntityIsRequested
()
38
{
39
$factory =
new
ilTermsOfServiceEntityFactory
();
40
$factory->getByName(
'PHP Unit'
);
41
}
42
46
public
function
testAcceptanceEntityIsReturnedWhenRequestedByName
()
47
{
48
$factory =
new
ilTermsOfServiceEntityFactory
();
49
$this->assertInstanceOf(
'ilTermsOfServiceAcceptanceEntity'
, $factory->getByName(
'ilTermsOfServiceAcceptanceEntity'
));
50
}
51
}
ilTermsOfServiceEntityFactoryTest\setUp
setUp()
Definition:
ilTermsOfServiceEntityFactoryTest.php:21
ilTermsOfServiceEntityFactory
Definition:
class.ilTermsOfServiceEntityFactory.php:8
ilTermsOfServiceEntityFactoryTest\testAcceptanceEntityIsReturnedWhenRequestedByName
testAcceptanceEntityIsReturnedWhenRequestedByName()
Definition:
ilTermsOfServiceEntityFactoryTest.php:46
ilTermsOfServiceEntityFactoryTest
Definition:
ilTermsOfServiceEntityFactoryTest.php:11
PHPUnit_Framework_TestCase
ilTermsOfServiceEntityFactoryTest\$backupGlobals
$backupGlobals
Definition:
ilTermsOfServiceEntityFactoryTest.php:16
ilTermsOfServiceEntityFactoryTest\testExceptionIsRaisedWhenUnknowEntityIsRequested
testExceptionIsRaisedWhenUnknowEntityIsRequested()
InvalidArgumentException
Definition:
ilTermsOfServiceEntityFactoryTest.php:37
ilTermsOfServiceEntityFactoryTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilTermsOfServiceEntityFactoryTest.php:28
Services
TermsOfService
test
factories
ilTermsOfServiceEntityFactoryTest.php
Generated on Mon Mar 31 2025 19:00:53 for ILIAS by
1.8.13 (using
Doxyfile
)