ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ItemTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21require_once(__DIR__ . "/../../../../../../vendor/composer/vendor/autoload.php");
22require_once(__DIR__ . "/../../Base.php");
23
26use ILIAS\Data;
29
34{
35 public function getFactory(): C\Item\Factory
36 {
37 return new I\Component\Item\Factory();
38 }
39
40 public function testImplementsFactoryInterface(): void
41 {
42 $f = $this->getFactory();
43
44 $this->assertInstanceOf("ILIAS\\UI\\Component\\Item\\Standard", $f->standard("title"));
45 }
46
47 public function testGetTitle(): void
48 {
49 $f = $this->getFactory();
50 $c = $f->standard("title");
51
52 $this->assertEquals("title", $c->getTitle());
53 }
54
55 public function testWithDescription(): void
56 {
57 $f = $this->getFactory();
58
59 $c = $f->standard("title")->withDescription("description");
60
61 $this->assertEquals("description", $c->getDescription());
62 }
63
64 public function testWithProperties(): void
65 {
66 $f = $this->getFactory();
67
68 $props = array("prop1" => "val1", "prop2" => "val2");
69 $c = $f->standard("title")->withProperties($props);
70
71 $this->assertEquals($c->getProperties(), $props);
72 }
73
74 public function testWithProgress(): void
75 {
76 $f = $this->getFactory();
77 $chart = new I\Component\Chart\ProgressMeter\ProgressMeter(100, 50);
78
79 $c = $f->standard("title")->withProgress($chart);
80
81 $this->assertEquals($c->getProgress(), $chart);
82 }
83
84 public function testWithActions(): void
85 {
86 $f = $this->getFactory();
87
88 $actions = new I\Component\Dropdown\Standard(array(
89 new I\Component\Button\Shy("ILIAS", "https://www.ilias.de"),
90 new I\Component\Button\Shy("GitHub", "https://www.github.com")
91 ));
92 $c = $f->standard("title")->withActions($actions);
93
94 $this->assertEquals($c->getActions(), $actions);
95 }
96
97 public function testWithColor(): void
98 {
99 $f = $this->getFactory();
100 $df = new Data\Factory();
101
102 $color = $df->color('#ff00ff');
103
104 $c = $f->standard("title")->withColor($color);
105
106 $this->assertEquals($c->getColor(), $color);
107 }
108
109 public function testWithLeadImage(): void
110 {
111 $f = $this->getFactory();
112
113 $image = new I\Component\Image\Image("standard", "src", "str");
114
115 $c = $f->standard("title")->withLeadImage($image);
116
117 $this->assertEquals($c->getLead(), $image);
118 }
119
120 public function testWithLeadIcon(): void
121 {
122 $f = $this->getFactory();
123
124 $icon = new I\Component\Symbol\Icon\Standard("name", "aria_label", "small", false);
125
126 $c = $f->standard("title")->withLeadIcon($icon);
127
128 $this->assertEquals($icon, $c->getLead());
129 }
130
131 public function testWithLeadLetterAvatar(): void
132 {
133 $f = $this->getFactory();
134
135 $avatar = new Letter('il');
136
137 $c = $f->standard("title")->withLeadAvatar($avatar);
138
139 $this->assertEquals($avatar, $c->getLead());
140 }
141
142 public function testWithLeadPictureAvatar(): void
143 {
144 $f = $this->getFactory();
145
146 $avatar = new Picture('./assets/images/placeholder/no_photo_xsmall.jpg', 'demo.user');
147
148 $c = $f->standard("title")->withLeadAvatar($avatar);
149
150 $this->assertEquals($avatar, $c->getLead());
151 }
152
153 public function testWithLeadText(): void
154 {
155 $f = $this->getFactory();
156
157 $c = $f->standard("title")->withLeadText("text");
158
159 $this->assertEquals("text", $c->getLead());
160 }
161
162 public function testWithNoLead(): void
163 {
164 $f = $this->getFactory();
165
166 $c = $f->standard("title")->withLeadText("text")->withNoLead();
167
168 $this->assertEquals(null, $c->getLead());
169 }
170
171 public function testWithAudioPlayer(): void
172 {
173 $f = $this->getFactory();
174
175 $audio = new I\Component\Player\Audio("src", "transcript");
176 $c = $f->standard("title")->withAudioPlayer($audio);
177
178 $this->assertEquals($c->getAudioPlayer(), $audio);
179 }
180
181 public function testWithMainActionButton(): void
182 {
183 $f = $this->getFactory();
184
185 $main_action = $this->createMock(I\Component\Button\Standard::class);
186 $c = $f->standard("Title")->withMainAction($main_action);
187
188 $this->assertEquals($c->getMainAction(), $main_action);
189 }
190
191 public function testWithMainActionLink(): void
192 {
193 $f = $this->getFactory();
194
195 $main_action = $this->createMock(I\Component\Link\Standard::class);
196 $c = $f->standard("Title")->withMainAction($main_action);
197
198 $this->assertEquals($c->getMainAction(), $main_action);
199 }
200
201 public function testRenderBase(): void
202 {
203 $f = $this->getFactory();
204 $r = $this->getDefaultRenderer();
205
206 $actions = new I\Component\Dropdown\Standard(array(
207 new I\Component\Button\Shy("ILIAS", "https://www.ilias.de"),
208 new I\Component\Button\Shy("GitHub", "https://www.github.com")
209 ));
210 $c = $f->standard("Item Title")
211 ->withActions($actions)
212 ->withProperties(array(
213 "Origin" => "Course Title 1",
214 "Last Update" => "24.11.2011",
215 "Location" => "Room 123, Main Street 44, 3012 Bern"))
216 ->withDescription("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
217
218 $html = $r->render($c);
219
220 $expected = <<<EOT
221 <div class="il-item il-std-item ">
222 <h4 class="il-item-title">Item Title</h4>
223 <div class="il-item-actions l-bar__space-keeper"><div class="l-bar__element"><div class="dropdown" id="id_3"><button class="btn btn-default dropdown-toggle" type="button" aria-label="actions" aria-haspopup="true" aria-expanded="false" aria-controls="id_3_menu"><span class="caret"></span></button>
224 <ul id="id_3_menu" class="dropdown-menu">
225 <li><button class="btn btn-link" data-action="https://www.ilias.de" id="id_1" >ILIAS</button>
226 </li>
227 <li><button class="btn btn-link" data-action="https://www.github.com" id="id_2" >GitHub</button>
228 </li>
229 </ul>
230 </div></div></div>
231 <div class="il-item-description">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</div>
232 <hr class="il-item-divider" />
233 <div class="row">
234 <div class="col-md-6 il-multi-line-cap-3">
235 <span class="il-item-property-name">Origin</span><span class="il-item-property-value">Course Title 1</span>
236 </div>
237 <div class="col-md-6 il-multi-line-cap-3">
238 <span class="il-item-property-name">Last Update</span><span class="il-item-property-value">24.11.2011</span>
239 </div>
240 </div>
241 <div class="row">
242 <div class="col-md-6 il-multi-line-cap-3">
243 <span class="il-item-property-name">Location</span><span class="il-item-property-value">Room 123, Main Street 44, 3012 Bern</span>
244 </div>
245 <div class="col-md-6 il-multi-line-cap-3">
246 <span class="il-item-property-name"></span><span class="il-item-property-value"></span>
247 </div>
248 </div>
249 </div>
250EOT;
251
252 $this->assertHTMLEquals(
253 $this->brutallyTrimHTML($expected),
254 $this->brutallyTrimHTML($html)
255 );
256 }
257
258 public function testRenderLeadImage(): void
259 {
260 $f = $this->getFactory();
261 $r = $this->getDefaultRenderer();
262
263 $image = new I\Component\Image\Image("standard", "src", "str");
264
265 $c = $f->standard("title")->withLeadImage($image);
266
267 $html = $r->render($c);
268 $expected = <<<EOT
269<div class="il-item il-std-item ">
270 <div class="row">
271 <div class="col-xs-2 col-sm-3">
272 <img src="src" class="img-standard" alt="str" />
273 </div>
274 <div class="col-xs-10 col-sm-9">
275 <h4 class="il-item-title">title</h4>
276 </div>
277 </div>
278</div>
279EOT;
280
281 $this->assertHTMLEquals(
282 $this->brutallyTrimHTML($expected),
283 $this->brutallyTrimHTML($html)
284 );
285 }
286
287 public function testRenderLeadIcon(): void
288 {
289 $f = $this->getFactory();
290 $r = $this->getDefaultRenderer();
291
292 $icon = new I\Component\Symbol\Icon\Standard("name", "aria_label", "small", false);
293
294 $c = $f->standard("title")->withLeadIcon($icon);
295
296 $html = $r->render($c);
297 $expected = <<<EOT
298<div class="il-item il-std-item ">
299 <div class="media">
300 <div class="media-left">
301 <img class="icon name small" src="./assets/images/standard/icon_default.svg" alt="aria_label" />
302 </div>
303 <div class="media-body">
304 <h4 class="il-item-title">title</h4>
305 </div>
306 </div>
307</div>
308EOT;
309
310 $this->assertHTMLEquals(
311 $this->brutallyTrimHTML($expected),
312 $this->brutallyTrimHTML($html)
313 );
314 }
315
316 public function testRenderLeadLetterAvatar(): void
317 {
318 $f = $this->getFactory();
319 $r = $this->getDefaultRenderer();
320
321 $avatar = new Letter('il');
322
323 $c = $f->standard("title")->withLeadAvatar($avatar);
324
325 $html = $r->render($c);
326
327 $expected = <<<EOT
328<div class="il-item il-std-item ">
329 <div class="media">
330 <div class="media-left">
331 <span class="il-avatar il-avatar-letter il-avatar-size-large il-avatar-letter-color-11" aria-label="user_avatar" role="img">
332 <span class="abbreviation">il</span>
333 </span>
334 </div>
335 <div class="media-body">
336 <h4 class="il-item-title">title</h4>
337 </div>
338 </div>
339</div>
340EOT;
341
342 $this->assertHTMLEquals(
343 $this->brutallyTrimHTML($expected),
344 $this->brutallyTrimHTML($html)
345 );
346 }
347
348 public function testRenderLeadPictureAvatar(): void
349 {
350 $f = $this->getFactory();
351 $r = $this->getDefaultRenderer();
352
353 $avatar = new Picture('./assets/images/placeholder/no_photo_xsmall.jpg', 'demo.user');
354
355 $c = $f->standard("title")->withLeadAvatar($avatar);
356
357 $html = $r->render($c);
358 $expected = <<<EOT
359<div class="il-item il-std-item ">
360 <div class="media">
361 <div class="media-left">
362 <span class="il-avatar il-avatar-picture il-avatar-size-large">
363 <img src="./assets/images/placeholder/no_photo_xsmall.jpg" alt="user_avatar"/>
364 </span>
365 </div>
366 <div class="media-body">
367 <h4 class="il-item-title">title</h4>
368 </div>
369 </div>
370</div>
371EOT;
372
373 $this->assertHTMLEquals(
374 $this->brutallyTrimHTML($expected),
375 $this->brutallyTrimHTML($html)
376 );
377 }
378
379 public function testRenderProgress(): void
380 {
381 $f = $this->getFactory();
382 $r = $this->getDefaultRenderer();
383
384 $chart = new I\Component\Chart\ProgressMeter\Standard(100, 75);
385
386 $c = $f->standard("title")->withProgress($chart);
387
388 $html = $r->render($c);
389 $expected = <<<EOT
390<div class="il-item il-std-item ">
391 <div class="row">
392 <div class="col-sm-9">
393 <h4 class="il-item-title">title</h4>
394 </div>
395 <div class="col-xs-3 col-sm-2 col-lg-2">
396 <div class="il-chart-progressmeter-box ">
397 <div class="il-chart-progressmeter-container">
398 <svg viewBox="0 0 50 40" class="il-chart-progressmeter-viewbox">
399 <path class="il-chart-progressmeter-circle-bg" stroke-dasharray="100, 100" d="M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
400 <g class="il-chart-progressmeter-monocircle">
401 <path class="il-chart-progressmeter-circle no-success" stroke-dasharray="71, 100" d="M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
402 </g>
403 <g class="il-chart-progressmeter-text">
404 <text class="text-score-info" x="25" y="16"></text>
405 <text class="text-score" x="25" y="25">75 %</text>
406 <text class="text-comparision" x="25" y="31"></text>
407 <text class="text-comparision-info" x="25" y="34"></text>
408 </g>
409 <g class="il-chart-progressmeter-needle no-needle" style="transform: rotate(deg)">
410 <polygon class="il-chart-progressmeter-needle-border" points="23.5,0.1 25,2.3 26.5,0.1"></polygon>
411 <polygon class="il-chart-progressmeter-needle-fill" points="23.5,0 25,2.2 26.5,0"></polygon>
412 </g>
413 </svg>
414 </div>
415 </div>
416 </div>
417 </div>
418</div>
419EOT;
420
421 $this->assertHTMLEquals(
422 $this->brutallyTrimHTML($expected),
423 $this->brutallyTrimHTML($html)
424 );
425 }
426
427 public function testRenderProgressAndLeadImage(): void
428 {
429 $f = $this->getFactory();
430 $r = $this->getDefaultRenderer();
431
432 $image = new I\Component\Image\Image("standard", "src", "str");
433 $chart = new I\Component\Chart\ProgressMeter\Standard(100, 75);
434
435 $c = $f->standard("title")->withLeadImage($image)->withProgress($chart);
436
437 $html = $r->render($c);
438 $expected = <<<EOT
439<div class="il-item il-std-item ">
440 <div class="row">
441 <div class="col-xs-3 col-sm-3 col-lg-2">
442 <img src="src" class="img-standard" alt="str" />
443 </div>
444 <div class="col-xs-6 col-sm-7 col-lg-8">
445 <h4 class="il-item-title">title</h4>
446 </div>
447 <div class="col-xs-3 col-sm-2 col-lg-2">
448 <div class="il-chart-progressmeter-box ">
449 <div class="il-chart-progressmeter-container">
450 <svg viewBox="0 0 50 40" class="il-chart-progressmeter-viewbox">
451 <path class="il-chart-progressmeter-circle-bg" stroke-dasharray="100, 100" d="M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
452 <g class="il-chart-progressmeter-monocircle">
453 <path class="il-chart-progressmeter-circle no-success" stroke-dasharray="71, 100" d="M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
454 </g>
455 <g class="il-chart-progressmeter-text">
456 <text class="text-score-info" x="25" y="16"></text>
457 <text class="text-score" x="25" y="25">75 %</text>
458 <text class="text-comparision" x="25" y="31"></text>
459 <text class="text-comparision-info" x="25" y="34"></text>
460 </g>
461 <g class="il-chart-progressmeter-needle no-needle" style="transform: rotate(deg)">
462 <polygon class="il-chart-progressmeter-needle-border" points="23.5,0.1 25,2.3 26.5,0.1"></polygon>
463 <polygon class="il-chart-progressmeter-needle-fill" points="23.5,0 25,2.2 26.5,0"></polygon>
464 </g>
465 </svg>
466 </div>
467 </div>
468 </div>
469 </div>
470</div>
471EOT;
472
473 $this->assertHTMLEquals(
474 $this->brutallyTrimHTML($expected),
475 $this->brutallyTrimHTML($html)
476 );
477 }
478
479 public function testRenderProgressAndLeadIcon(): void
480 {
481 $f = $this->getFactory();
482 $r = $this->getDefaultRenderer();
483
484 $icon = new I\Component\Symbol\Icon\Standard("name", "aria_label", "small", false);
485 $chart = new I\Component\Chart\ProgressMeter\Standard(100, 75);
486
487 $c = $f->standard("title")->withLeadIcon($icon)->withProgress($chart);
488
489 $html = $r->render($c);
490 $expected = <<<EOT
491<div class="il-item il-std-item ">
492 <div class="media">
493 <div class="media-left">
494 <img class="icon name small" src="./assets/images/standard/icon_default.svg" alt="aria_label" />
495 </div>
496 <div class="media-body">
497 <h4 class="il-item-title">title</h4>
498 </div>
499 <div class="media-right">
500 <div class="il-chart-progressmeter-box ">
501 <div class="il-chart-progressmeter-container">
502 <svg viewBox="0 0 50 40" class="il-chart-progressmeter-viewbox">
503 <path class="il-chart-progressmeter-circle-bg" stroke-dasharray="100, 100" d="M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
504 <g class="il-chart-progressmeter-monocircle">
505 <path class="il-chart-progressmeter-circle no-success" stroke-dasharray="71, 100" d="M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
506 </g>
507 <g class="il-chart-progressmeter-text">
508 <text class="text-score-info" x="25" y="16"></text>
509 <text class="text-score" x="25" y="25">75 %</text>
510 <text class="text-comparision" x="25" y="31"></text>
511 <text class="text-comparision-info" x="25" y="34"></text>
512 </g>
513 <g class="il-chart-progressmeter-needle no-needle" style="transform: rotate(deg)">
514 <polygon class="il-chart-progressmeter-needle-border" points="23.5,0.1 25,2.3 26.5,0.1"></polygon>
515 <polygon class="il-chart-progressmeter-needle-fill" points="23.5,0 25,2.2 26.5,0"></polygon>
516 </g>
517 </svg>
518 </div>
519 </div>
520 </div>
521 </div>
522</div>
523EOT;
524
525 $this->assertHTMLEquals(
526 $this->brutallyTrimHTML($expected),
527 $this->brutallyTrimHTML($html)
528 );
529 }
530
531 public function testRenderLeadTextAndColor(): void
532 {
533 $f = $this->getFactory();
534 $r = $this->getDefaultRenderer();
535 $df = new Data\Factory();
536
537 $color = $df->color('#ff00ff');
538
539 $c = $f->standard("title")->withColor($color)->withLeadText("lead");
540
541 $html = $r->render($c);
542
543 $expected = <<<EOT
544<div class="il-item il-std-item il-item-marker " style="border-color:#ff00ff">
545 <div class="row">
546 <div class="col-sm-3">
547 lead
548 </div>
549 <div class="col-sm-9">
550 <h4 class="il-item-title">title</h4>
551 </div>
552 </div>
553</div>
554EOT;
555
556 $this->assertHTMLEquals(
557 $this->brutallyTrimHTML($expected),
558 $this->brutallyTrimHTML($html)
559 );
560 }
561
562 public function testShyTitleAndVariousProperties(): void
563 {
564 $f = $this->getFactory();
565 $r = $this->getDefaultRenderer();
566 $df = new Data\Factory();
567
568 $df->color('#ff00ff');
569
570 $c = $f->standard(new I\Component\Button\Shy("ILIAS", "https://www.ilias.de"))
571 ->withProperties([
572 "Property Text" => "Text",
573 "Property HTML" => "<a>Link</a>",
574 "Property Shy" => new I\Component\Button\Shy("GitHub", "https://www.github.com"),
575 "Property Icon" => new I\Component\Symbol\Icon\Standard("name", "aria_label", "small", false)
576 ]);
577
578 $html = $this->brutallyTrimHTML($r->render($c));
579 $expected = $this->brutallyTrimHTML(<<<EOT
580<div class="il-item il-std-item ">
581 <h4 class="il-item-title">
582 <button class="btn btn-link" data-action="https://www.ilias.de" id="id_1">ILIAS</button>
583 </h4>
584 <hr class="il-item-divider" />
585 <div class="row">
586 <div class="col-md-6 il-multi-line-cap-3">
587 <span class="il-item-property-name">Property Text</span>
588 <span class="il-item-property-value">Text</span>
589 </div>
590 <div class="col-md-6 il-multi-line-cap-3">
591 <span class="il-item-property-name">Property HTML</span>
592 <span class="il-item-property-value">
593 <a>Link</a>
594 </span>
595 </div>
596 </div>
597 <div class="row">
598 <div class="col-md-6 il-multi-line-cap-3">
599 <span class="il-item-property-name">Property Shy</span>
600 <span class="il-item-property-value">
601 <button class="btn btn-link" data-action="https://www.github.com" id="id_2">GitHub</button>
602 </span>
603 </div>
604 <div class="col-md-6 il-multi-line-cap-3">
605 <span class="il-item-property-name">Property Icon</span>
606 <span class="il-item-property-value">
607 <img class="icon name small" src="./assets/images/standard/icon_default.svg" alt="aria_label"/>
608 </span>
609 </div>
610 </div>
611</div>
612EOT);
613
614 $this->assertEquals($expected, $html);
615 }
616
617 public function testLinkTitle(): void
618 {
619 $f = $this->getFactory();
620 $r = $this->getDefaultRenderer();
621
622 $c = $f->standard(new I\Component\Link\Standard("ILIAS", "https://www.ilias.de"));
623 $html = $r->render($c);
624
625 $expected = <<<EOT
626<div class="il-item il-std-item "><h4 class="il-item-title"><a href="https://www.ilias.de">ILIAS</a></h4></div>
627EOT;
628
629 $this->assertHTMLEquals($expected, $html);
630 }
631
632 public function testRenderAudioPlayer(): void
633 {
634 $f = $this->getFactory();
635 $r = $this->getDefaultRenderer();
636
637 $audio = new I\Component\Player\Audio("src", "");
638 $c = $f->standard("title")->withAudioPlayer($audio);
639
640 $html = $r->render($c);
641 $expected = <<<EOT
642<div class="il-item il-std-item ">
643 <h4 class="il-item-title">title</h4>
644 <div class="il-item-audio"><div class="il-audio-container">
645 <audio class="il-audio-player" id="id_1" src="src" preload="metadata"></audio>
646</div></div>
647</div>
648EOT;
649 $this->assertHTMLEquals(
650 $this->brutallyTrimHTML($expected),
651 $this->brutallyTrimHTML($html)
652 );
653 }
654
655 public function testMainActionButton(): void
656 {
657 $f = $this->getFactory();
658
659 $expected_button_html = md5(I\Component\Button\Standard::class);
660 $main_action = $this->createMock(I\Component\Button\Standard::class);
661 $main_action->method('getCanonicalName')->willReturn($expected_button_html);
662
663 $c = $f->standard("Title")->withMainAction($main_action);
664
665 $html = $this->getDefaultRenderer(null, [
666 $main_action
667 ])->render($c);
668
669 $expected = <<<EOT
670 <div class="il-item il-std-item ">
671 <h4 class="il-item-title">Title</h4>
672 <div class="il-item-actions l-bar__space-keeper">
673 <div class="l-bar__element">$expected_button_html
674 </div>
675 </div>
676 </div>
677EOT;
678
679 $this->assertHTMLEquals(
680 $this->brutallyTrimHTML($expected),
681 $this->brutallyTrimHTML($html)
682 );
683 }
684
685 public function testMainActionLink(): void
686 {
687 $f = $this->getFactory();
688 $expected_link_html = md5(I\Component\Link\Standard::class);
689 $main_action = $this->createMock(I\Component\Link\Standard::class);
690 $main_action->method('getCanonicalName')->willReturn($expected_link_html);
691
692 $c = $f->standard("Title")->withMainAction($main_action);
693
694 $html = $this->getDefaultRenderer(null, [
695 $main_action
696 ])->render($c);
697
698 $expected = <<<EOT
699 <div class="il-item il-std-item ">
700 <h4 class="il-item-title">Title</h4>
701 <div class="il-item-actions l-bar__space-keeper">
702 <div class="l-bar__element">$expected_link_html</div>
703 </div>
704 </div>
705EOT;
706
707 $this->assertHTMLEquals(
708 $this->brutallyTrimHTML($expected),
709 $this->brutallyTrimHTML($html)
710 );
711 }
712
713}
Builds data types.
Definition: Factory.php:36
Provides common functionality for UI tests.
Definition: Base.php:337
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: class.ilias.php:29
Test items.
Definition: ItemTest.php:34
testRenderLeadLetterAvatar()
Definition: ItemTest.php:316
testGetTitle()
Definition: ItemTest.php:47
testWithProperties()
Definition: ItemTest.php:64
testWithColor()
Definition: ItemTest.php:97
testWithLeadText()
Definition: ItemTest.php:153
testImplementsFactoryInterface()
Definition: ItemTest.php:40
testRenderLeadIcon()
Definition: ItemTest.php:287
testRenderProgressAndLeadImage()
Definition: ItemTest.php:427
testShyTitleAndVariousProperties()
Definition: ItemTest.php:562
testRenderLeadPictureAvatar()
Definition: ItemTest.php:348
testWithMainActionLink()
Definition: ItemTest.php:191
testRenderProgressAndLeadIcon()
Definition: ItemTest.php:479
testRenderProgress()
Definition: ItemTest.php:379
testWithAudioPlayer()
Definition: ItemTest.php:171
testWithLeadIcon()
Definition: ItemTest.php:120
getFactory()
Definition: ItemTest.php:35
testWithLeadImage()
Definition: ItemTest.php:109
testWithLeadPictureAvatar()
Definition: ItemTest.php:142
testRenderAudioPlayer()
Definition: ItemTest.php:632
testMainActionLink()
Definition: ItemTest.php:685
testRenderLeadImage()
Definition: ItemTest.php:258
testWithProgress()
Definition: ItemTest.php:74
testLinkTitle()
Definition: ItemTest.php:617
testMainActionButton()
Definition: ItemTest.php:655
testWithNoLead()
Definition: ItemTest.php:162
testRenderLeadTextAndColor()
Definition: ItemTest.php:531
testWithDescription()
Definition: ItemTest.php:55
testWithActions()
Definition: ItemTest.php:84
testWithMainActionButton()
Definition: ItemTest.php:181
testRenderBase()
Definition: ItemTest.php:201
testWithLeadLetterAvatar()
Definition: ItemTest.php:131
Title class.
Definition: Title.php:42
$c
Definition: deliver.php:25
This describes a symbol.
Definition: Symbol.php:30
button(string $caption, string $cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.