19 declare(strict_types=1);
    31 require_once __DIR__ . 
'/../ContainerMock.php';
    39         $this->assertInstanceOf(PageContent::class, 
new PageContent(
'foo', []));
    44         $template = $this->mock(ilGlobalTemplateInterface::class);
    45         $template->expects(self::once())->method(
'setTitle')->with(
'foo');
    46         $components = [$this->mock(Component::class), $this->mock(Component::class)];
    50         $this->assertSame(
'rendered', $instance->render($template, 
$renderer));
    56         $this->assertInstanceOf(ShowOnScreenMessage::class, $instance->withOnScreenMessage(
'foo', 
'bar', 
true));
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testWithOnScreenMessage()