19declare(strict_types=1);
21require_once(__DIR__ .
"/../../../../../../vendor/composer/vendor/autoload.php");
22require_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());
54 $r = $this->getDefaultRenderer();
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 <input type=
"month" class=
"btn btn-default" value=
"2017-02" />
66 $this->brutallyTrimHTML($expected_html),
67 $this->brutallyTrimHTML($html)
Provides common functionality for UI tests.