ILIAS
Release_4_4_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
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
}
Services
TermsOfService
test
factories
ilTermsOfServiceEntityFactoryTest.php
Generated on Wed Apr 27 2016 20:02:01 for ILIAS by
1.8.1.2 (using
Doxyfile
)