19 declare(strict_types=1);
30 $factory->setDatabaseAdapter($this->getMockBuilder(ilDBInterface::class)->getMock());
32 $this->assertInstanceOf(ilTermsOfServiceTableDataProviderFactory::class,
$factory);
44 $this->expectException(InvalidArgumentException::class);
56 $db = $this->getMockBuilder(ilDBInterface::class)->getMock();
69 $this->expectException(ilTermsOfServiceMissingDatabaseAdapterException::class);
84 $this->assertInstanceOf(
85 ilTermsOfServiceAcceptanceHistoryProvider::class,
const CONTEXT_ACCEPTANCE_HISTORY
setDatabaseAdapter(?ilDBInterface $db)
getByContext(string $context)
Class ilTermsOfServiceTableDataProviderFactoryTest.
Class ilTermsOfServiceBaseTest.
testExceptionIsRaisedWhenAcceptanceHistoryProviderIsRequestedWithoutCompleteFactoryConfiguration(ilTermsOfServiceTableDataProviderFactory $factory)
testInstanceCanBeCreated
Class ilTermsOfServiceTableDataProviderFactory.
testInstanceCanBeCreated()
testFactoryShouldReturnAcceptanceHistoryProviderWhenRequested(ilTermsOfServiceTableDataProviderFactory $factory)
testExceptionIsRaisedWhenUnsupportedProviderIsRequested(ilTermsOfServiceTableDataProviderFactory $factory)
testInstanceCanBeCreated
testFactoryShouldReturnDatabaseAdapterWhenDatabaseAdapterIsSet(ilTermsOfServiceTableDataProviderFactory $factory)