19 declare(strict_types=1);
35 ->onlyMethods([
"getRendererFor",
"getRendererFactoryFor"])
39 ->onlyMethods([
"registerResources",
"render"])
41 $component = $this->getMockBuilder(Component::class)->getMock();
44 ->expects($this->once())
45 ->method(
"getRendererFor")
49 $registry = $this->getMockBuilder(ResourceRegistry::class)
61 ->onlyMethods([
"getRendererFor",
"getRendererFactoryFor"])
65 ->onlyMethods([
"registerResources",
"render"])
67 $component = $this->getMockBuilder(Component::class)->getMock();
69 ->expects($this->once())
70 ->method(
"getRendererFor")
71 ->with($component, [])
74 $registry = $this->getMockBuilder(ResourceRegistry::class)
78 ->expects($this->once())
79 ->method(
"registerResources")
83 $l->getRendererFor($component, []);
89 ->onlyMethods([
"getRendererFor",
"getRendererFactoryFor"])
92 $c1 = $this->createMock(Component::class);
94 $factory = $this->createMock(RendererFactory::class);
96 ->expects($this->exactly(1))
97 ->method(
"getRendererFactoryFor")
99 ->willReturn($factory);
103 $this->assertSame($factory, $l->getRendererFactoryFor($c1));
testForwardsFromUnderlying()
testPassthroughGetRendererFactory()
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Caches renderers loaded by another loader.
Registers resources for retreived renderers at a ResourceRegistry.