ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTermsOfServiceEntityFactoryTest Class Reference

Class ilTermsOfServiceEntityFactoryTest. More...

+ Inheritance diagram for ilTermsOfServiceEntityFactoryTest:
+ Collaboration diagram for ilTermsOfServiceEntityFactoryTest:

Public Member Functions

 testInstanceCanBeCreated ()
 
 testExceptionIsRaisedWhenUnknownEntityIsRequested ()
 
 testAcceptanceEntityIsReturnedWhenRequestedByName ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilTermsOfServiceBaseTest
 setUp ()
 
 getLanguageMock ()
 
 setGlobalVariable (string $name, $value)
 
 assertException (string $exceptionClass)
 
 getCriterionConfig ($value=null)
 
- Protected Attributes inherited from ilTermsOfServiceBaseTest
 $dic
 

Detailed Description

Member Function Documentation

◆ testAcceptanceEntityIsReturnedWhenRequestedByName()

ilTermsOfServiceEntityFactoryTest::testAcceptanceEntityIsReturnedWhenRequestedByName ( )

Definition at line 34 of file ilTermsOfServiceEntityFactoryTest.php.

References $factory.

35  {
36  $factory = new \ilTermsOfServiceEntityFactory();
37 
38  $this->assertInstanceOf(
39  'ilTermsOfServiceAcceptanceEntity',
40  $factory->getByName('ilTermsOfServiceAcceptanceEntity')
41  );
42  }
$factory
Definition: metadata.php:43

◆ testExceptionIsRaisedWhenUnknownEntityIsRequested()

ilTermsOfServiceEntityFactoryTest::testExceptionIsRaisedWhenUnknownEntityIsRequested ( )

Definition at line 23 of file ilTermsOfServiceEntityFactoryTest.php.

References $factory, and ilTermsOfServiceBaseTest\assertException().

24  {
25  $this->assertException(\InvalidArgumentException::class);
26 
27  $factory = new \ilTermsOfServiceEntityFactory();
28  $factory->getByName('PHP Unit');
29  }
assertException(string $exceptionClass)
$factory
Definition: metadata.php:43
+ Here is the call graph for this function:

◆ testInstanceCanBeCreated()

ilTermsOfServiceEntityFactoryTest::testInstanceCanBeCreated ( )

Definition at line 13 of file ilTermsOfServiceEntityFactoryTest.php.

References $factory.

14  {
15  $factory = new \ilTermsOfServiceEntityFactory();
16 
17  $this->assertInstanceOf('ilTermsOfServiceEntityFactory', $factory);
18  }
$factory
Definition: metadata.php:43

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