5require_once(__DIR__ . 
"/../../../../libs/composer/vendor/autoload.php");
 
    6require_once(__DIR__ . 
"/../../Base.php");
 
    8use \ILIAS\UI\Component as 
C;
 
   21        return new \ILIAS\UI\Implementation\Factory();
 
   28        $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Dropdown\\Standard", $f->dropdown()->standard(array()));
 
   35        $c = $f->dropdown()->standard(array())->withLabel(
"label");
 
   37        $this->assertEquals($c->getLabel(), 
"label");
 
   43        $c = $f->dropdown()->standard(array(
 
   44            $f->button()->shy(
"ILIAS", 
"https://www.ilias.de"),
 
   45            $f->button()->shy(
"GitHub", 
"https://www.github.com"),
 
   46            $f->divider()->horizontal(),
 
   47            $f->button()->shy(
"GitHub", 
"https://www.github.com")
 
   49        $items = $c->getItems();
 
   51        $this->assertTrue(is_array($items));
 
   52        $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Button\\Shy", $items[0]);
 
   53        $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Divider\\Horizontal", $items[2]);
 
   61        $c = $f->dropdown()->standard(array());
 
   66        $this->assertEquals($expected, 
$html);
 
   74        $c = $f->dropdown()->standard(array(
 
   75            $f->button()->shy(
"ILIAS", 
"https://www.ilias.de"),
 
   76            $f->divider()->horizontal(),
 
   77            $f->button()->shy(
"GitHub", 
"https://www.github.com")
 
   83                        <div 
class=
"dropdown">
 
   84                                <button 
class=
"btn btn-default dropdown-toggle" type=
"button" data-toggle=
"dropdown" aria-haspopup=
"true" aria-expanded=
"false">
 
   85                                        <span 
class=
"caret"></span>
 
   87                                <ul 
class=
"dropdown-menu">
 
   88                                        <li><a 
class=
"btn btn-link" href=
"https://www.ilias.de" data-action=
"https://www.ilias.de">
ILIAS</a></li>
 
   90                                        <li><a 
class=
"btn btn-link" href=
"https://www.github.com" data-action=
"https://www.github.com">GitHub</a></li>
 
  103        $c = $f->dropdown()->standard(array(
 
  104            $f->button()->shy(
"ILIAS", 
"https://www.ilias.de"),
 
  105            $f->divider()->horizontal(),
 
  106            $f->button()->shy(
"GitHub", 
"https://www.github.com")
 
  107        ))->withLabel(
"label");
 
  112                        <div 
class=
"dropdown"><button 
class=
"btn btn-default dropdown-toggle" type=
"button" data-toggle=
"dropdown"  aria-haspopup=
"true" aria-expanded=
"false">label <span 
class=
"caret"></span></button>
 
  113                                <ul 
class=
"dropdown-menu">
 
  114                                        <li><a 
class=
"btn btn-link" href=
"https://www.ilias.de" data-action=
"https://www.ilias.de">
ILIAS</a></li>
 
  116                                        <li><a 
class=
"btn btn-link" href=
"https://www.github.com" data-action=
"https://www.github.com">GitHub</a></li>
 
An exception for terminatinating execution or to throw for unit testing.
Test on card implementation.
test_render_items_with_label()
test_implements_factory_interface()
Provides common functionality for UI tests.
assertHTMLEquals($expected_html_as_string, $html_as_string)
getDefaultRenderer(JavaScriptBinding $js_binding=null)