public function testEditActionSave()
 {
     $this->createsModels = true;
     $model = new Opus_Language();
     $model->setRefName('Test');
     $model->setPart2T('tst');
     $modelId = $model->store();
     $this->getRequest()->setMethod('POST')->setPost(array('Id' => $modelId, 'Active' => '1', 'RefName' => 'RefNameModified', 'Part2T' => 'n2t', 'Part2B' => 'tet', 'Part1' => 'us', 'Scope' => 'I', 'Type' => 'L', 'Comment' => 'test comment', 'Save' => 'Speichern'));
     $this->dispatch('/admin/language/edit');
     $this->assertRedirectTo('/admin/language/show/id/' . $modelId);
     $this->verifyFlashMessage('controller_crud_save_success', self::MESSAGE_LEVEL_NOTICE);
     $model = new Opus_Language($modelId);
     $this->assertEquals(1, $model->getActive());
     $this->assertEquals('RefNameModified', $model->getRefName());
     $this->assertEquals('n2t', $model->getPart2T());
     $this->assertEquals('tet', $model->getPart2B());
     $this->assertEquals('us', $model->getPart1());
     $this->assertEquals('I', $model->getScope());
     $this->assertEquals('L', $model->getType());
     $this->assertEquals('test comment', $model->getComment());
 }