public function testPopulateFromModel() { $form = new Admin_Form_Document_Institute(Admin_Form_Document_Institute::ROLE_PUBLISHER); $doc = new Opus_Document(146); $publishers = $doc->getThesisPublisher(); $publisher = $publishers[0]; $form->populateFromModel($publisher); $this->assertEquals($doc->getId(), $form->getElement('Id')->getValue()); $this->assertEquals($publisher->getModel()->getId(), $form->getElement('Institute')->getValue()); }