ILIAS
release_4-4 Revision
◀ ilDoc Overview
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 Dec 21 2020 19:01:24 for ILIAS by
1.8.13 (using
Doxyfile
)