3 declare(strict_types=1);
21 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../Base.php");
33 return new I\Component\Button\Factory();
40 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Button\\Month",
$f->month(
"02-2017"));
46 $c =
$f->month(
"02-2017");
48 $this->assertEquals(
"02-2017",
$c->getDefault());
56 $c =
$f->month(
"02-2017");
58 $html = $r->render(
$c);
60 $expected_html = <<<EOT
61 <div
id=
"id_1" class=
"btn-group il-btn-month">
62 <button type=
"button" class=
"btn btn-default dropdown-toggle" data-toggle=
"dropdown" aria-expanded=
"false">
63 <span
class=
"il-current-month">month_02_short 2017</span>
64 <span
class=
"caret"></span>
66 <div
class=
"dropdown-menu" data-
default-date=
"02/1/2017" data-lang=
"en">
67 <div
class=
"inline-picker"></div>
71 $this->
assertHTMLEquals(
"<div>" . $expected_html .
"</div>",
"<div>" . $html .
"</div>");
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
Provides common functionality for UI tests.