1 <?php declare(strict_types=1);
18 $factory->setDatabaseAdapter($this->getMockBuilder(ilDBInterface::class)->getMock());
22 $this->assertInstanceOf(ilTermsOfServiceDocumentTableDataProvider::class, $provider);
23 $this->assertInstanceOf(ilTermsOfServiceTableDataProvider::class, $provider);
35 $documentConnector = $this->getMockBuilder(arConnector::class)->getMock();
36 $criterionConnector = $this->getMockBuilder(arConnector::class)->getMock();
51 ->expects($this->once())
53 ->willReturn($documentData);
56 ->expects($this->exactly(count($documentData)))
58 ->willReturnCallback(
function () {
67 $this->assertArrayHasKey(
'items',
$data);
68 $this->assertArrayHasKey(
'cnt',
$data);
69 $this->assertCount(3,
$data[
'items']);
70 $this->assertEquals(3,
$data[
'cnt']);
static register(ActiveRecord $ar, arConnector $connector)
Class ilTermsOfServiceDocumentTableDataProvider.
testListOfDocumentsCanBeRetrieved(ilTermsOfServiceDocumentTableDataProvider $provider)
testDocumentProviderCanBeCreatedByFactory
Class ilTermsOfServiceDocumentTableDataProviderTest.
Class ilTermsOfServiceDocumentCriterionAssignment.
Class ilTermsOfServiceBaseTest.
getList(array $params, array $filter)
Table parameters like limit or order Filter settings provided by a ilTable2GUI instance array An asso...
testDocumentProviderCanBeCreatedByFactory()
Class ilTermsOfServiceDocument.
Class ilTermsOfServiceTableDataProviderFactory.