test/snac/server/database/DBUtilTest.php
/**
     * Ingest the full CPF test using the optional status arg
     *
     * Write a constellation with the optional status 'ingest cpf' to test contellation creation and
     * maintenance info capture in the version_history record.
     */
Ingest the full CPF test using the optional status arg
Write a constellation with the optional status 'ingest cpf' to test contellation creation and
maintenance info capture in the version_history record.
Ingest the full CPF test using the optional status arg Write a constellation with the optional status ' ingest cpf ' to test contellation creation and maintenance info capture in the version_history record .
public function testFullCPFIngestCPFStatus()
    {
        $this->logger->addDebug("Starting: " . __METHOD__);
        $eParser = new \snac\util\EACCPFParser();
        $eParser->setConstellationOperation(\snac\data\AbstractData::$OPERATION_INSERT);
        $cObj = $eParser->parseFile("test/snac/server/database/test_record.xml");
        $retObj = $this->dbu->writeConstellation($this->user, 
                                                 $cObj,       
                                                 'testing ingest full CPF record with ingest cpf', 
                                                 'ingest cpf'); 
        $this->assertTrue($cObj->equals($retObj, false), "Initial parsed constellation doesn't equal written one");
        $readObj = $this->dbu->readConstellation($retObj->getID());
        $this->assertEquals($this->dbu->readConstellationStatus($readObj->getID()), 'locked editing');
        $this->logger->addDebug("Ending: " . __METHOD__);
    }
public function testFullCPFIngestCPFStatus ( ) { $ this -> logger -> addDebug ( " Starting:  " . __METHOD__ ) ; $ eParser = new \ snac \ util \ EACCPFParser ( ) ; $ eParser -> setConstellationOperation ( \ snac \ data \ AbstractData :: $ OPERATION_INSERT ) ; $ cObj = $ eParser -> parseFile ( " test/snac/server/database/test_record.xml " ) ; $ retObj = $ this -> dbu -> writeConstellation ( $ this -> user , $ cObj , 'testing ingest full CPF record with ingest cpf' , 'ingest cpf' ) ; $ this -> assertTrue ( $ cObj -> equals ( $ retObj , false ) , " Initial parsed constellation doesn't equal written one " ) ; $ readObj = $ this -> dbu -> readConstellation ( $ retObj -> getID ( ) ) ; $ this -> assertEquals ( $ this -> dbu -> readConstellationStatus ( $ readObj -> getID ( ) ) , 'locked editing' ) ; $ this -> logger -> addDebug ( " Ending:  " . __METHOD__ ) ; }
Ingest the full CPF test using the optional status arg
 Write a constellation with the optional status 'ingest cpf' to test contellation creation and
 maintenance info capture in the version_history record.
Ingest the full CPF test using the optional status arg Write a constellation with the optional status ' ingest cpf ' to test contellation creation and maintenance info capture in the version_history record .
// $user // $argObj // $note // $statusArg // Get the most recent version. /*
         * The constellation object does not contain a populated status because the server may change it. If
         * you want status you must call readConstellationStatus() and get it directly from the db.
         */