Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct(self::ROLE_PUBLISHER);
 }
Ejemplo n.º 2
0
 public function testValidation()
 {
     $form = new Admin_Form_Document_Institute(Admin_Form_Document_Institute::ROLE_PUBLISHER);
     $post = array();
     $this->assertFalse($form->isValid($post));
     $this->assertContains('isEmpty', $form->getErrors('Institute'));
     $post = array('Institute' => 'a');
     $this->assertFalse($form->isValid($post));
     $this->assertContains('notInt', $form->getErrors('Institute'));
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct(self::ROLE_GRANTOR);
 }