Exemplo n.º 1
0
 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'));
 }
Exemplo n.º 2
0
 public function init()
 {
     parent::init();
     $this->remove('userId')->remove('role')->remove('dateCreated')->remove('dateModified')->remove('active');
 }