ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilTermsOfServiceEntityFactoryTest Class Reference
+ Inheritance diagram for ilTermsOfServiceEntityFactoryTest:
+ Collaboration diagram for ilTermsOfServiceEntityFactoryTest:

Public Member Functions

 setUp ()
 
 testInstanceCanBeCreated ()
 
 testExceptionIsRaisedWhenUnknowEntityIsRequested ()
 InvalidArgumentException More...
 
 testAcceptanceEntityIsReturnedWhenRequestedByName ()
 

Protected Attributes

 $backupGlobals = false
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 11 of file ilTermsOfServiceEntityFactoryTest.php.

Member Function Documentation

◆ setUp()

ilTermsOfServiceEntityFactoryTest::setUp ( )

Definition at line 21 of file ilTermsOfServiceEntityFactoryTest.php.

22  {
23  if(!defined('MDB2_AUTOQUERY_INSERT'))
24  {
25  define('MDB2_AUTOQUERY_INSERT', 1);
26  }
27 
28  parent::setUp();
29  }

◆ testAcceptanceEntityIsReturnedWhenRequestedByName()

ilTermsOfServiceEntityFactoryTest::testAcceptanceEntityIsReturnedWhenRequestedByName ( )

Definition at line 52 of file ilTermsOfServiceEntityFactoryTest.php.

53  {
54  $factory = new ilTermsOfServiceEntityFactory();
55  $this->assertInstanceOf('ilTermsOfServiceAcceptanceEntity', $factory->getByName('ilTermsOfServiceAcceptanceEntity'));
56  }

◆ testExceptionIsRaisedWhenUnknowEntityIsRequested()

ilTermsOfServiceEntityFactoryTest::testExceptionIsRaisedWhenUnknowEntityIsRequested ( )

InvalidArgumentException

Definition at line 43 of file ilTermsOfServiceEntityFactoryTest.php.

44  {
45  $factory = new ilTermsOfServiceEntityFactory();
46  $factory->getByName('PHP Unit');
47  }

◆ testInstanceCanBeCreated()

ilTermsOfServiceEntityFactoryTest::testInstanceCanBeCreated ( )

Definition at line 34 of file ilTermsOfServiceEntityFactoryTest.php.

35  {
36  $factory = new ilTermsOfServiceEntityFactory();
37  $this->assertInstanceOf('ilTermsOfServiceEntityFactory', $factory);
38  }

Field Documentation

◆ $backupGlobals

ilTermsOfServiceEntityFactoryTest::$backupGlobals = false
protected

Definition at line 16 of file ilTermsOfServiceEntityFactoryTest.php.


The documentation for this class was generated from the following file: