1<?
php declare(strict_types=1);
17 $factory->setDatabaseAdapter($this->getMockBuilder(ilDBInterface::class)->getMock());
19 $this->assertInstanceOf(
'ilTermsOfServiceTableDataProviderFactory',
$factory);
32 $this->expectException(InvalidArgumentException::class);
48 $this->assertEquals($db,
$factory->getDatabaseAdapter());
76 $this->assertInstanceOf(
77 'ilTermsOfServiceAcceptanceHistoryProvider',
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceBaseTest.
Class ilTermsOfServiceMissingDatabaseAdapterException.
Class ilTermsOfServiceTableDataProviderFactoryTest.
testExceptionIsRaisedWhenUnsupportedProviderIsRequested(ilTermsOfServiceTableDataProviderFactory $factory)
@depends testInstanceCanBeCreated
testFactoryShouldReturnDatabaseAdapterWhenDatabaseAdapterIsSet(ilTermsOfServiceTableDataProviderFactory $factory)
testExceptionIsRaisedWhenAcceptanceHistoryProviderIsRequestedWithoutCompleteFactoryConfiguration(ilTermsOfServiceTableDataProviderFactory $factory)
@depends testInstanceCanBeCreated
testInstanceCanBeCreated()
testFactoryShouldReturnAcceptanceHistoryProviderWhenRequested(ilTermsOfServiceTableDataProviderFactory $factory)
Class ilTermsOfServiceTableDataProviderFactory.
const CONTEXT_ACCEPTANCE_HISTORY
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...