ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilTermsOfServiceEntityFactoryTest Class Reference
+ Inheritance diagram for ilTermsOfServiceEntityFactoryTest:
+ Collaboration diagram for ilTermsOfServiceEntityFactoryTest:

Public Member Functions

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

Protected Attributes

 $backupGlobals = false
 

Additional Inherited Members

- Protected Member Functions inherited from ilTermsOfServiceBaseTest
 assertException ($exception_class)
 

Detailed Description

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

Definition at line 12 of file ilTermsOfServiceEntityFactoryTest.php.

Member Function Documentation

◆ setUp()

ilTermsOfServiceEntityFactoryTest::setUp ( )

Definition at line 22 of file ilTermsOfServiceEntityFactoryTest.php.

23  {
24  parent::setUp();
25  }

◆ testAcceptanceEntityIsReturnedWhenRequestedByName()

ilTermsOfServiceEntityFactoryTest::testAcceptanceEntityIsReturnedWhenRequestedByName ( )

Definition at line 49 of file ilTermsOfServiceEntityFactoryTest.php.

References $factory.

50  {
52  $this->assertInstanceOf('ilTermsOfServiceAcceptanceEntity', $factory->getByName('ilTermsOfServiceAcceptanceEntity'));
53  }
$factory
Definition: metadata.php:47

◆ testExceptionIsRaisedWhenUnknowEntityIsRequested()

ilTermsOfServiceEntityFactoryTest::testExceptionIsRaisedWhenUnknowEntityIsRequested ( )

InvalidArgumentException

Definition at line 39 of file ilTermsOfServiceEntityFactoryTest.php.

References $factory, and ilTermsOfServiceBaseTest\assertException().

40  {
41  $this->assertException(InvalidArgumentException::class);
43  $factory->getByName('PHP Unit');
44  }
$factory
Definition: metadata.php:47
+ Here is the call graph for this function:

◆ testInstanceCanBeCreated()

ilTermsOfServiceEntityFactoryTest::testInstanceCanBeCreated ( )

Definition at line 30 of file ilTermsOfServiceEntityFactoryTest.php.

References $factory.

31  {
33  $this->assertInstanceOf('ilTermsOfServiceEntityFactory', $factory);
34  }
$factory
Definition: metadata.php:47

Field Documentation

◆ $backupGlobals

ilTermsOfServiceEntityFactoryTest::$backupGlobals = false
protected

Definition at line 17 of file ilTermsOfServiceEntityFactoryTest.php.


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