Tests for the DrilldownSlate.
More...
Tests for the DrilldownSlate.
Definition at line 31 of file DrilldownSlateTest.php.
◆ getUIFactory()
DrilldownSlateTest::getUIFactory |
( |
| ) |
|
Definition at line 33 of file DrilldownSlateTest.php.
References ILIAS\Repository\button(), and ILIAS\Repository\symbol().
Referenced by testImplementsFactoryInterface().
36 protected function getSigGen()
38 return new I\SignalGenerator();
41 public function menu():
I\Menu\Factory
43 return new I\Menu\Factory(
48 public function symbol():
I\Symbol\Factory
50 return new I\Symbol\Factory(
51 new I\Symbol\
Icon\Factory(),
52 new I\Symbol\Glyph\Factory(),
53 new I\Symbol\Avatar\Factory()
57 public function mainControls():
I\MainControls\Factory
59 $slate_factory =
new I\MainControls\Slate\Factory(
61 new I\Counter\Factory(),
64 return new I\MainControls\Factory($this->getSigGen(), $slate_factory);
69 return new I\Button\Factory();
button(string $caption, string $cmd)
◆ testImplementsFactoryInterface()
DrilldownSlateTest::testImplementsFactoryInterface |
( |
| ) |
|
Definition at line 74 of file DrilldownSlateTest.php.
References Vendor\Package\$f, and getUIFactory().
77 $slate =
$f->mainControls()->slate()->drilldown(
79 $f->symbol()->icon()->custom(
'',
''),
80 $f->menu()->drilldown(
'ddmenu', [])
82 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\MainControls\\Slate\\Drilldown", $slate);
◆ testRendering()
DrilldownSlateTest::testRendering |
( |
Drilldown |
$slate | ) |
|
Definition at line 87 of file DrilldownSlateTest.php.
References $r.
89 $r = $this->getDefaultRenderer();
90 $html =
$r->render($slate);
93 <div class="il-maincontrols-slate disengaged" id="id_4"> 94 <div class="il-maincontrols-slate-content" data-replace-marker="content"> 95 <section class="c-drilldown" id="id_2"> 96 <header class="c-drilldown__header--showbacknav"> 99 <div class="c-drilldown__filter"> 100 <label for=\'id_3\' class="control-label">filter_nodes_in</label> 101 <input id=\'id_3\' type="text" class="form-control" /> 103 <div class="c-drilldown__backnav"> 104 <button class="btn btn-bulky" id="id_1" aria-label="back"> 105 <span class="glyph" aria-label="collapse/back" role="img"> 106 <span class="glyphicon glyphicon-triangle-left" aria-hidden="true"></span> 108 <span class="bulky-label"></span> 112 <div class="c-drilldown__menu"> 113 <ul aria-live="polite" aria-label="ddmenu"> 114 <li class="c-drilldown__menu--no-items"> drilldown_no_items</li> 122 $this->brutallyTrimHTML($expected),
123 $this->brutallyTrimHTML($html)
The documentation for this class was generated from the following file: