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; }
protected function doInit() { parent::doInit(); $this->html->addClass(HTML::class2html($this->entity->getEntityName()) . '-form')->addClass('\\Psc\\entity-form'); }