13 require_once
'PU_testcase_dcp_commonfamily.php';
20 "PU_data_dcp_editcontrol.ods"
35 $doc->disableEditControl();
37 $this->assertEmpty(
$err, sprintf(
"revise() returned an unexpected error on document '%s' with user '%s': %s",
$data[
'doc'],
$data[
'login'],
$err));
39 $this->assertEmpty(
$err, sprintf(
"modify() returned an unexpected error on document '%s' with user '%s': %s",
$data[
'doc'],
$data[
'login'],
$err));
48 'login' =>
'u_editcontrol',
49 'doc' =>
'TST_EDITCONTROL_1'
67 $revs = $this->
_revs($docId);
68 $this->assertNotEmpty(
$err, sprintf(
"revise() did not returned an error on document '%s' with user '%s'.",
$data[
'doc'],
$data[
'login']));
69 $this->assertTrue((count($revs) <= 0) , sprintf(
"Document '%s' has been revised in database: %s",
$data[
'doc'], var_export($revs,
true)));
78 'login' =>
'u_editcontrol',
79 'doc' =>
'TST_EDITCONTROL_1'
87 $q = sprintf(
"SELECT revs.id FROM doc, doc AS revs WHERE doc.id = '%s' AND doc.initid = revs.initid AND revs.id > doc.id ORDER BY revs.id", pg_escape_string($docId));
static getCommonImportFile()
dataEditControlAfterReviseModify()
testEditControlAfterReviseModify($data)
simpleQuery($dbaccess, $query, &$result=array(), $singlecolumn=false, $singleresult=false, $useStrict=null)
if($file) if($subject==""&&$file) if($subject=="") $err