public function setUp() { parent::setUp(); $document = $this->createTestDocument(); $document->setServerState('unpublished'); $document->setPersonReferee(array()); $document->setEnrichment(array()); $this->documentId = $document->store(); $document = new Opus_Document($this->documentId); $this->assertEquals(0, count($document->getPersonReferee())); $this->assertEquals(0, count($document->getEnrichment())); }
public function testRejectDocumentWoPerson() { $helper = new Review_Model_ClearDocumentsHelper(); $helper->reject(array($this->documentId), 23); $document = new Opus_Document($this->documentId); $this->assertNotEquals('published', $document->getServerState()); $this->assertEquals(0, count($document->getPersonReferee())); $enrichments = $document->getEnrichment(); $this->assertEquals(1, count($enrichments)); $this->assertEquals(23, $enrichments[0]->getValue()); }