コード例 #1
0
 public function testGetLabel()
 {
     $this->useEnglish();
     Zend_Registry::get('Zend_Translate')->loadModule('admin');
     $element = new Application_Form_Element_FileHash('filehash');
     $file = new Opus_File(116);
     $hashes = $file->getHashValue();
     $hash = $hashes[0];
     $this->assertEquals('MD5', $hash->getType());
     $element->setValue($hash);
     $element->setFile($file);
     $this->assertEquals('Checksum - MD5', $element->getLabel());
 }