19 declare(strict_types=1);
46 require_once __DIR__ .
'/../ContainerMock.php';
54 $uri = $this->mock(UriInterface::class);
55 $uri->method(
'__toString')->willReturn(
'http://myIlias/ilias.php?baseClass=iladministrationgui&cmdNode=2g:qo:gq&cmdClass=ilLegalDocumentsAdministrationGUI&cmd=documents&ref_id=50');
57 $request = $this->mock(ServerRequestInterface::class);
58 $request->method(
"getUri")->willReturn($uri);
60 $this->assertInstanceOf(DocumentTable::class,
new DocumentTable(
62 $this->mock(DocumentRepository::class),
63 $this->mock(UI::class),
64 $this->mock(DocumentModal::class),
65 $this->mock(ilLegalDocumentsAdministrationGUI::class),
69 $this->mock(ilCtrl::class),
70 $this->mock(Renderer::class),
71 $this->mockTree(ilObjUser::class, [
'getTimeZone' =>
'europe/berlin'])
77 $uri = $this->mock(UriInterface::class);
78 $uri->method(
'__toString')->willReturn(
'http://myIlias/ilias.php?baseClass=iladministrationgui&cmdNode=2g:qo:gq&cmdClass=ilLegalDocumentsAdministrationGUI&cmd=documents&ref_id=50');
80 $request = $this->mock(ServerRequestInterface::class);
81 $request->method(
"getUri")->willReturn($uri);
83 $content = $this->mock(CriterionContent::class);
84 $component = $this->mock(Component::class);
88 $this->assertSame($content, $c);
91 $this->mock(DocumentRepository::class),
92 $this->mock(UI::class),
93 $this->mock(DocumentModal::class),
94 $this->mock(ilLegalDocumentsAdministrationGUI::class),
98 $this->mock(ilCtrl::class),
99 $this->mock(Renderer::class),
100 $this->mockTree(ilObjUser::class, [
'getTimeZone' =>
'europe/berlin'])
105 $instance->criterionName($this->mockTree(Criterion::class, [
'content' => $content]))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...