3 declare(strict_types=1);
21 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../Base.php");
41 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Listing\\Factory",
$f);
42 $this->assertInstanceOf(
43 "ILIAS\\UI\\Component\\Listing\\Ordered",
44 $f->ordered(array(
"1"))
46 $this->assertInstanceOf(
47 "ILIAS\\UI\\Component\\Listing\\Unordered",
48 $f->unordered(array(
"1"))
50 $this->assertInstanceOf(
51 "ILIAS\\UI\\Component\\Listing\\Descriptive",
52 $f->descriptive(array(
"k1" =>
"c1"))
55 $this->assertInstanceOf(
56 "ILIAS\\UI\\Component\\Listing\\CharacteristicValue\\Factory",
57 $f->characteristicValue()
64 $l =
$f->ordered(array(
"1",
"2"));
66 $items = array(
"1",
"2");
67 $this->assertEquals($l->getItems(), $items);
73 $l =
$f->unordered(array(
"1",
"2"));
75 $items = array(
"1",
"2");
76 $this->assertEquals($l->getItems(), $items);
82 $l =
$f->descriptive(array(
"k1" =>
"c1",
"k2" =>
"c2"));
84 $items = array(
"k1" =>
"c1",
"k2" =>
"c2");
85 $this->assertEquals($l->getItems(), $items);
91 $l =
$f->ordered(array())->withItems(array(
"1",
"2"));
93 $items = array(
"1",
"2");
94 $this->assertEquals($l->getItems(), $items);
100 $l =
$f->unordered(array())->withItems(array(
"1",
"2"));
102 $items = array(
"1",
"2");
103 $this->assertEquals($l->getItems(), $items);
109 $l =
$f->descriptive(array())->withItems(array(
"k1" =>
"c1",
"k2" =>
"c2"));
111 $items = array(
"k1" =>
"c1",
"k2" =>
"c2");
112 $this->assertEquals($l->getItems(), $items);
119 $l =
$f->ordered(array(
"1",
"2"));
128 $this->assertEquals($expected, $html);
136 $f->descriptive(array(
"1"));
138 $this->assertEquals(
"InvalidArgumentException", get_class($e));
147 $f->descriptive(array(
"1",
"1"));
149 $this->assertEquals(
"InvalidArgumentException", get_class($e));
157 $l =
$f->unordered(array(
"1",
"2"));
166 $this->assertEquals($expected, $html);
173 $l =
$f->descriptive(array(
"k1" =>
"c1",
"k2" =>
"c2"));
184 $this->assertEquals($expected, $html);
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
test_descriptive_invalid_items2()
test_ordered_with_items()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_unordered_get_items()
test_implements_factory_interface()
test_descriptive_invalid_items3()
test_descriptive_with_items()
Provides common functionality for UI tests.
test_render_ordered_listing()
Test on button implementation.
test_unordered_with_items()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_render_descriptive_listing()
test_descriptive_get_items()
normalizeHTML(string $html)
test_render_unordered_listing()