public function testEditActionSave()
 {
     $this->createsModels = true;
     $licence = new Opus_Licence();
     $licence->setNameLong('NameLong');
     $licence->setLanguage('deu');
     $licence->setLinkLicence('LinkLicence');
     $licenceId = $licence->store();
     $this->getRequest()->setMethod('POST')->setPost(array('Id' => $licenceId, 'Active' => '1', 'NameLong' => 'NameLongModified', 'Language' => 'eng', 'LinkLicence' => 'LinkLicenceModified', 'LinkLogo' => 'LinkLogoAdded', 'DescText' => 'DescTextAdded', 'DescMarkup' => 'DescMarkupAdded', 'CommentInternal' => 'CommentInternalAdded', 'MimeType' => 'text/plain', 'PodAllowed' => '1', 'SortOrder' => '5', 'Save' => 'Abspeichern'));
     $this->dispatch('/admin/licence/edit');
     $this->assertRedirectTo('/admin/licence/show/id/' . $licenceId);
     $this->verifyFlashMessage('controller_crud_save_success', self::MESSAGE_LEVEL_NOTICE);
     $licence = new Opus_Licence($licenceId);
     $this->assertEquals(1, $licence->getActive());
     $this->assertEquals('NameLongModified', $licence->getNameLong());
     $this->assertEquals('eng', $licence->getLanguage());
     $this->assertEquals('LinkLicenceModified', $licence->getLinkLicence());
     $this->assertEquals('LinkLogoAdded', $licence->getLinkLogo());
     $this->assertEquals('DescTextAdded', $licence->getDescText());
     $this->assertEquals('DescMarkupAdded', $licence->getDescMarkup());
     $this->assertEquals('CommentInternalAdded', $licence->getCommentInternal());
     $this->assertEquals('text/plain', $licence->getMimeType());
     $this->assertEquals(1, $licence->getPodAllowed());
     $this->assertEquals(5, $licence->getSortOrder());
 }