Ejemplo n.º 1
0
 function testCopySystemStatus()
 {
     $objAspect = new class_module_system_aspect();
     $objAspect->setStrName("copytest");
     $objAspect->updateObjectToDb();
     $strSysid = $objAspect->getSystemid();
     $objAspect->setIntRecordStatus(0);
     $objAspect->updateObjectToDb();
     $objAspect->copyObject();
     $strCopyId = $objAspect->getSystemid();
     $objAspect = new class_module_system_aspect($strSysid);
     $objCopy = new class_module_system_aspect($strCopyId);
     $this->assertEquals($objAspect->getStrName(), $objCopy->getStrName());
     $this->assertEquals($objAspect->getStrPrevId(), $objCopy->getStrPrevId());
     $this->assertEquals($objAspect->getIntRecordStatus(), $objCopy->getIntRecordStatus());
     $this->assertEquals($objAspect->getStrRecordClass(), $objCopy->getStrRecordClass());
     $this->assertNotEquals($objAspect->getSystemid(), $objCopy->getSystemid());
 }