public function testEditlinkedActionSave() { $document = $this->createTestDocument(); $person = new Opus_Person(); $person->setLastName('Testy-EditlinkedAction'); $person = $document->addPersonTranslator($person); $this->documentId = $document->store(); $personId = $person->getModel()->getId(); $this->getRequest()->setMethod('POST')->setPost(array('PersonId' => $personId, 'LastName' => 'Testy', 'FirstName' => 'Simone', 'Document' => array('Role' => 'translator'), 'Save' => 'Speichern')); $this->dispatch('/admin/person/editlinked/personId/' . $personId . '/role/translator/document/' . $this->documentId); $this->assertRedirectTo('/admin/document/edit/id/' . $this->documentId . '/continue/updateperson/person/' . $personId); $person = new Opus_Person($personId); $this->assertEquals('Testy', $person->getLastName()); $this->assertEquals('Simone', $person->getFirstName()); }