ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTermsOfServiceTableDataProviderFactoryTest Class Reference
+ Inheritance diagram for ilTermsOfServiceTableDataProviderFactoryTest:
+ Collaboration diagram for ilTermsOfServiceTableDataProviderFactoryTest:

Public Member Functions

 setUp ()
 
 testInstanceCanBeCreated ()
 
 testExceptionIsRaisedWhenUnsupportedProviderIsRequested (ilTermsOfServiceTableDataProviderFactory $factory)
 testInstanceCanBeCreated More...
 
 testFactoryShouldReturnLanguageAdapterWhenLanguageAdapterIsSet (ilTermsOfServiceTableDataProviderFactory $factory)
 
 testFactoryShouldReturnDatabaseAdapterWhenDatabaseAdapterIsSet (ilTermsOfServiceTableDataProviderFactory $factory)
 
 testExceptionIsRaisedWhenAgreementByLanguageProviderIsRequestedWithoutCompleteFactoryConfiguration (ilTermsOfServiceTableDataProviderFactory $factory)
 testInstanceCanBeCreated More...
 
 testExceptionIsRaisedWhenAcceptanceHistoryProviderIsRequestedWithoutCompleteFactoryConfiguration (ilTermsOfServiceTableDataProviderFactory $factory)
 testInstanceCanBeCreated More...
 
 testFactoryShouldReturnAgreementByLanguageProviderWhenRequested (ilTermsOfServiceTableDataProviderFactory $factory)
 
 testFactoryShouldReturnAcceptanceHistoryProviderWhenRequested (ilTermsOfServiceTableDataProviderFactory $factory)
 

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 10 of file ilTermsOfServiceTableDataProviderFactoryTest.php.

Member Function Documentation

◆ setUp()

ilTermsOfServiceTableDataProviderFactoryTest::setUp ( )

Definition at line 20 of file ilTermsOfServiceTableDataProviderFactoryTest.php.

21  {
22  }

◆ testExceptionIsRaisedWhenAcceptanceHistoryProviderIsRequestedWithoutCompleteFactoryConfiguration()

◆ testExceptionIsRaisedWhenAgreementByLanguageProviderIsRequestedWithoutCompleteFactoryConfiguration()

◆ testExceptionIsRaisedWhenUnsupportedProviderIsRequested()

ilTermsOfServiceTableDataProviderFactoryTest::testExceptionIsRaisedWhenUnsupportedProviderIsRequested ( ilTermsOfServiceTableDataProviderFactory  $factory)

testInstanceCanBeCreated

Parameters
ilTermsOfServiceTableDataProviderFactory$factoryInvalidArgumentException

Definition at line 39 of file ilTermsOfServiceTableDataProviderFactoryTest.php.

References ilTermsOfServiceTableDataProviderFactory\getByContext().

+ Here is the call graph for this function:

◆ testFactoryShouldReturnAcceptanceHistoryProviderWhenRequested()

ilTermsOfServiceTableDataProviderFactoryTest::testFactoryShouldReturnAcceptanceHistoryProviderWhenRequested ( ilTermsOfServiceTableDataProviderFactory  $factory)

◆ testFactoryShouldReturnAgreementByLanguageProviderWhenRequested()

ilTermsOfServiceTableDataProviderFactoryTest::testFactoryShouldReturnAgreementByLanguageProviderWhenRequested ( ilTermsOfServiceTableDataProviderFactory  $factory)

◆ testFactoryShouldReturnDatabaseAdapterWhenDatabaseAdapterIsSet()

ilTermsOfServiceTableDataProviderFactoryTest::testFactoryShouldReturnDatabaseAdapterWhenDatabaseAdapterIsSet ( ilTermsOfServiceTableDataProviderFactory  $factory)
Parameters
ilTermsOfServiceTableDataProviderFactory$factorytestInstanceCanBeCreated

Definition at line 59 of file ilTermsOfServiceTableDataProviderFactoryTest.php.

References ilTermsOfServiceTableDataProviderFactory\getDatabaseAdapter(), and ilTermsOfServiceTableDataProviderFactory\setDatabaseAdapter().

60  {
61  $db = $this->getMockBuilder('ilDB')->disableOriginalConstructor()->getMock();
62  $factory->setDatabaseAdapter($db);
63  $this->assertEquals($db, $factory->getDatabaseAdapter());
64  }
+ Here is the call graph for this function:

◆ testFactoryShouldReturnLanguageAdapterWhenLanguageAdapterIsSet()

ilTermsOfServiceTableDataProviderFactoryTest::testFactoryShouldReturnLanguageAdapterWhenLanguageAdapterIsSet ( ilTermsOfServiceTableDataProviderFactory  $factory)
Parameters
ilTermsOfServiceTableDataProviderFactory$factorytestInstanceCanBeCreated

Definition at line 48 of file ilTermsOfServiceTableDataProviderFactoryTest.php.

References $lng, ilTermsOfServiceTableDataProviderFactory\getLanguageAdapter(), and ilTermsOfServiceTableDataProviderFactory\setLanguageAdapter().

49  {
50  $lng = $this->getMockBuilder('ilLanguage')->disableOriginalConstructor()->getMock();
51  $factory->setLanguageAdapter($lng);
52  $this->assertEquals($lng, $factory->getLanguageAdapter());
53  }
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ testInstanceCanBeCreated()

ilTermsOfServiceTableDataProviderFactoryTest::testInstanceCanBeCreated ( )
Returns
ilTermsOfServiceTableDataProviderFactory

Definition at line 27 of file ilTermsOfServiceTableDataProviderFactoryTest.php.

28  {
30  $this->assertInstanceOf('ilTermsOfServiceTableDataProviderFactory', $factory);
31  return $factory;
32  }

Field Documentation

◆ $backupGlobals

ilTermsOfServiceTableDataProviderFactoryTest::$backupGlobals = false
protected

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