ILIAS  release_8 Revision v8.24
DecoratedRendererTest.php
Go to the documentation of this file.
1<?php
2
19require_once(__DIR__ . "/TestComponent.php");
20require_once(__DIR__ . "/../Base.php");
21
24
26{
27 public function test_render()
28 {
29 $c1 = new TestComponent("foo");
30 $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
31 $html = $renderer->render($c1);
32 $this->assertEquals("foo", $html);
33 }
34
35 public function test_render_async()
36 {
37 $c1 = new TestComponent("foo");
38 $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
39 $html = $renderer->renderAsync($c1);
40 $this->assertEquals("foo", $html);
41 }
42
44 {
45 $c1 = new TestComponent("foo");
46 $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
47 $renderer->manipulate();
48 $html = $renderer->render($c1);
49 $this->assertEquals("This content was manipulated", $html);
50 }
51}
Provides common functionality for UI tests.
Definition: Base.php:299
getDecoratedRenderer(Renderer $default)
Definition: Base.php:417
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
Definition: Base.php:355