◆ testForwardsFromUnderlying()
ComponentRendererLoaderResourceRegistryWrapperTest::testForwardsFromUnderlying |
( |
| ) |
|
Definition at line 32 of file ComponentRendererLoaderResourceRegistryWrapperTest.php.
References $context, and $r.
35 ->onlyMethods([
"getRendererFor",
"getRendererFactoryFor"])
39 ->onlyMethods([
"registerResources",
"render"])
41 $component = $this->getMockBuilder(Component::class)->getMock();
44 ->expects($this->once())
45 ->method(
"getRendererFor")
47 ->willReturn($renderer);
49 $registry = $this->getMockBuilder(ResourceRegistry::class)
55 $this->assertSame($renderer,
$r);
Interface Observer Contains several chained tasks and infos about them.
Registers resources for retreived renderers at a ResourceRegistry.
◆ testPassthroughGetRendererFactory()
ComponentRendererLoaderResourceRegistryWrapperTest::testPassthroughGetRendererFactory |
( |
| ) |
|
Definition at line 86 of file ComponentRendererLoaderResourceRegistryWrapperTest.php.
References $factory.
89 ->onlyMethods([
"getRendererFor",
"getRendererFactoryFor"])
92 $c1 = $this->createMock(Component::class);
94 $factory = $this->createMock(RendererFactory::class);
96 ->expects($this->exactly(1))
97 ->method(
"getRendererFactoryFor")
103 $this->assertSame(
$factory, $l->getRendererFactoryFor($c1));
Interface Observer Contains several chained tasks and infos about them.
Caches renderers loaded by another loader.
◆ testRegisterResources()
ComponentRendererLoaderResourceRegistryWrapperTest::testRegisterResources |
( |
| ) |
|
Definition at line 58 of file ComponentRendererLoaderResourceRegistryWrapperTest.php.
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, [])
72 ->willReturn($renderer);
74 $registry = $this->getMockBuilder(ResourceRegistry::class)
78 ->expects($this->once())
79 ->method(
"registerResources")
83 $l->getRendererFor($component, []);
Interface Observer Contains several chained tasks and infos about them.
Registers resources for retreived renderers at a ResourceRegistry.
The documentation for this class was generated from the following file: