13 require_once
'PU_testcase_dcp_commonfamily.php';
30 $err = $e->getMessage();
32 $this->assertEmpty(
$err,
"import error detected $err");
33 foreach ($datas as
$data) {
35 $stateExpected = $data[1];
37 $this->assertTrue(
$doc->isAlive() , sprintf(
"cannot find doc [%s]", $docName));
38 $stateFound = json_decode(
$doc->getRawValue(
"test_extra") ,
true);
39 $this->assertEquals($stateExpected, $stateFound, sprintf(
"State found : [%s] is not the same as state expected: [%s]", $stateFound[
"state"], $stateExpected[
"state"]));
47 "PU_data_dcp_impworkflowextra.ods",
50 "TEST_EXTRA_DEFAULT1",
57 "TEST_EXTRA_DEFAULT2",
static importDocument($file)
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err