13 require_once
'PU_testcase_dcp_commonfamily.php';
25 return "PU_data_dcp_getdocvaluefamily.ods";
33 $this->assertTrue(is_object(
$d) , sprintf(
"cannot create %s document", $this->famName));
37 $this->assertEquals($expectValue,
$value,
"getDocValue $attrid wrong value");
45 $this->assertTrue(is_object(
$d) , sprintf(
"cannot create %s document", $this->famName));
46 $value =
$d->getDocValue($docName, $attrid);
48 $this->assertEquals($expectValue,
$value,
"getDocValue $attrid wrong value");
56 $this->assertTrue(
$d->isAlive() , sprintf(
"cannot find %s document", $docName));
58 $d->setValue($attrid, $expectValue);
61 $value =
$d->getDocValue(
$d->initid, $attrid,
'notFound',
true);
63 $this->assertEquals($expectValue,
$value,
"getDocValue $attrid wrong value from initid");
65 $value =
$d->getDocValue(
$d->id, $attrid,
'notFound',
true);
67 $this->assertEquals($expectValue,
$value,
"getDocValue $attrid wrong value from id");
75 $this->assertTrue(
$d->isAlive() , sprintf(
"cannot find %s document", $docName));
77 $d->setValue($attrid, $newvalue);
80 $value =
$d->getDocValue(
$d->initid, $attrid,
'notFound',
false);
82 $this->assertEquals($expectValue,
$value,
"getDocValue $attrid wrong value");
testDirectGetDocValueLogicalName($docName, $attrid, $expectValue)
testLatestGetDocValue($docName, $attrid, $expectValue)
dataDirectGetDocValueLogicalName()
static getCommonImportFile()
testFirstGetDocValue($docName, $attrid, $newvalue, $expectValue)
testDirectGetDocValue($docName, $attrid, $expectValue)
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
getIdFromName($dbaccess, $name)