ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 testRender()
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 testRenderAsync()
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}
$renderer
Provides common functionality for UI tests.
Definition: Base.php:337