Esempio n. 1
0
 public function testConstruct()
 {
     // generate random id
     $form = new ComponentsForm();
     $this->assertGreaterThan(0, mb_strlen($form->getFormId()));
     // random erzeugte
     // übergebene id
     $form = new ComponentsForm('my-nice-unique-id');
     $this->assertEquals('my-nice-unique-id', $form->getFormId());
     return $form;
 }
Esempio n. 2
0
 protected function doInit()
 {
     parent::doInit();
     $this->html->addClass(HTML::class2html($this->entity->getEntityName()) . '-form')->addClass('\\Psc\\entity-form');
 }