9 require_once
'PU_testcase_dcp_commonfamily.php';
16 "PU_data_dcp_getSortProperties.ods"
25 if (!is_numeric(
$data[
'famid'])) {
30 $properties = $famdoc->getSortProperties();
31 $count = count($properties);
32 $this->assertTrue(($count ==
$data[
'expected'][
'count']) , sprintf(
"Got '%d' properties while expecting '%d': %s", $count,
$data[
'expected'][
'count'], print_r($properties,
true)));
36 foreach ($properties as $propName => $parameters) {
37 if ($propName == $check[
'id']) {
42 $this->assertTrue($found, sprintf(
"Expected property '%s' not found.", $check[
'id']));
43 $this->assertTrue(($parameters[
'sort'] == $check[
'sort']) , sprintf(
"Property '%s' has sort '%s' while expecting '%s'.", $propName, $parameters[
'sort'], $check[
'sort']));
54 'famid' =>
'TST_GETSORTPROPERTIES_1',
80 'famid' =>
'TST_GETSORTPROPERTIES_2',
static getCommonImportFile()
getIdFromName($dbaccess, $name)
test_getSortProperties($data)