5 require_once(__DIR__ .
"/../../../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../../../Base.php");
7 require_once(__DIR__ .
"/FormTest.php");
11 use \ILIAS\Validation;
12 use \ILIAS\Transformation;
44 $df =
new Data\Factory();
48 new Validation\
Factory($df, $this->createMock(\ilLanguage::class)),
67 $f = $this->buildFactory();
68 $if = $this->buildInputFactory();
71 $this->assertEquals(
$url,
$form->getPostURL());
77 $f = $this->buildFactory();
78 $if = $this->buildInputFactory();
82 $if->text(
"label",
"byline"),
85 $r = $this->getDefaultRenderer();
88 $expected =
"<form role=\"form\" class=\"il-standard-form form-horizontal\" enctype=\"multipart/formdata\" action=\"MY_URL\" method=\"post\" novalidate=\"novalidate\"> <div class=\"il-standard-form-header clearfix\"> <div class=\"il-standard-form-cmd\"><button class=\"btn btn-default\" data-action=\"#\" id=\"id_1\">save</button></div> </div> <div class=\"form-group row\"> <label for=\"form_input_1\" class=\"control-label col-sm-3\">label</label> <div class=\"col-sm-9\"> <input type=\"text\" name=\"form_input_1\" class=\"form-control form-control-sm\" /> <div class=\"help-block\">byline</div> </div></div> <div class=\"il-standard-form-footer clearfix\"> <div class=\"il-standard-form-cmd\"><button class=\"btn btn-default\" data-action=\"#\" id=\"id_2\">save</button></div> </div></form>";
89 $this->assertHTMLEquals($expected,
$html);
if(isset($_POST['submit'])) $form
Provides common functionality for UI tests.