15 $factory = new \ilTermsOfServiceTableDataProviderFactory();
16 $factory->setDatabaseAdapter($this->getMockBuilder(\ilDBInterface::class)->getMock());
18 $this->assertInstanceOf(
'ilTermsOfServiceTableDataProviderFactory',
$factory);
44 $db = $this->getMockBuilder(\ilDBInterface::class)->getMock();
58 $this->
assertException(\ilTermsOfServiceMissingDatabaseAdapterException::class);
74 $this->assertInstanceOf(
75 'ilTermsOfServiceAcceptanceHistoryProvider',
const CONTEXT_ACCEPTANCE_HISTORY
testFactoryShouldReturnAcceptanceHistoryProviderWhenRequested(\ilTermsOfServiceTableDataProviderFactory $factory)
testFactoryShouldReturnDatabaseAdapterWhenDatabaseAdapterIsSet(\ilTermsOfServiceTableDataProviderFactory $factory)
assertException(string $exceptionClass)
getByContext(string $context)
testExceptionIsRaisedWhenUnsupportedProviderIsRequested(\ilTermsOfServiceTableDataProviderFactory $factory)
testInstanceCanBeCreated
Class ilTermsOfServiceTableDataProviderFactoryTest.
Class ilTermsOfServiceBaseTest.
Class ilTermsOfServiceTableDataProviderFactory.
testExceptionIsRaisedWhenAcceptanceHistoryProviderIsRequestedWithoutCompleteFactoryConfiguration(\ilTermsOfServiceTableDataProviderFactory $factory)
testInstanceCanBeCreated
testInstanceCanBeCreated()