13 require_once
'PU_testcase_dcp_commonfamily.php';
24 return "PU_data_dcp_attributeslashes.ods";
31 public function testOption($attrid, $optname, $expectedvalue)
36 $this->assertTrue(is_object(
$d) , sprintf(
"cannot create %s document", $this->famName));
38 $oa =
$d->getAttribute($attrid);
39 $this->assertNotEmpty($oa, sprintf(
"attribute %s not found in %s family", $attrid, $this->famName));
40 $value = $oa->getOption($optname);
41 $this->assertEquals($expectedvalue,
$value, sprintf(
"not the expected default value attribute %s", $attrid));
48 public function testPhpfunc($attrid, $expectedvalue)
53 $this->assertTrue(is_object(
$d) , sprintf(
"cannot create %s document", $this->famName));
58 $oa =
$d->getAttribute($attrid);
59 $this->assertNotEmpty($oa, sprintf(
"attribute %s not found in %s family", $attrid, $this->famName));
61 $this->assertEquals($expectedvalue,
$value, sprintf(
"not the expected default value attribute %s", $attrid));
102 '{"addPlugins": ["docattr"],"doclink": {"famId": "DIR", "filter" : "title=\\\\\'Comptes\\\\\'"}}'
120 '::commaConcat(TST_TEXT1, TST_TEXT2)'
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
testOption($attrid, $optname, $expectedvalue)
static getCommonImportFile()