public function testIncludePasswordOption() { $form = new User(null, ['include_password' => true]); $form->getFormFactory()->setFormElementManager($this->serviceManager->get('FormElementManager')); $form->init(); $this->assertTrue($form->has('show-password')); $this->assertTrue($form->has('passwd')); $this->assertTrue($form->has('passwd-confirm')); }
public function init() { parent::init(); $this->remove('userId')->remove('role')->remove('dateCreated')->remove('dateModified')->remove('active'); }