Definition at line 31 of file ProvidePublicPageTest.php.
◆ testConstruct()
ILIAS\LegalDocuments\test\Provide\ProvidePublicPageTest::testConstruct |
( |
| ) |
|
Definition at line 35 of file ProvidePublicPageTest.php.
37 $this->assertInstanceOf(ProvidePublicPage::class,
new ProvidePublicPage(
'foo', $this->mock(ilCtrl::class)));
◆ testUrl()
ILIAS\LegalDocuments\test\Provide\ProvidePublicPageTest::testUrl |
( |
| ) |
|
Definition at line 40 of file ProvidePublicPageTest.php.
42 $ctrl = $this->mock(ilCtrl::class);
43 $consecutive = [
'foo',
''];
44 $ctrl->expects(self::exactly(2))->method(
'setParameterByClass')->with(
45 $this->identicalTo(ilStartUpGUI::class),
46 $this->identicalTo(
'id'),
47 $this->callback(
function ($value) use (&$consecutive) {
48 $this->assertSame(array_shift($consecutive), $value);
52 $ctrl->expects(self::once())->method(
'getLinkTargetByClass')->with(ilStartUpGUI::class,
'showLegalDocuments')->willReturn(
'url');
54 $instance =
new ProvidePublicPage(
'foo', $ctrl);
55 $this->assertSame(
'url', $instance->url());
The documentation for this class was generated from the following file: