public function __construct() { parent::__construct(self::ROLE_PUBLISHER); }
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')); }
public function __construct() { parent::__construct(self::ROLE_GRANTOR); }