13 require_once
'PU_testcase_dcp_commonfamily.php';
26 return "PU_data_dcp_foldersearchfamily.ods";
39 $this->assertTrue(
$dir->isAlive() , sprintf(
"Could not get search with id '%s'.", $dirId));
42 $search->setObjectReturn();
43 $search->useCollection($dirId);
44 $search->setRecursiveSearch(
true, $sublevel);
47 while (
$doc = $search->getNextDoc()) {
51 $this->assertEquals(count($expectedName) , $search->count() , sprintf(
"returns %s\n expected %s", print_r($res,
true) , print_r($expectedName,
true)));
53 foreach ($expectedName as $name) {
54 $this->assertTrue(in_array($name, $res) , sprintf(
"%s not found, returns %s\n expected %s", $name, print_r($res,
true) , print_r($expectedName,
true)));
68 $this->assertTrue(
$dir->isAlive() , sprintf(
"Could not get search with id '%s'.", $dirId));
71 $search->setObjectReturn();
72 $search->useCollection($dirId);
73 $search->setRecursiveSearch(
true, $sublevel);
74 $c = $search->onlyCount();
76 $this->assertEquals(count($expectedName) ,
$c, sprintf(
"not expected cound"));
82 "dirid" =>
"TST_SDIR1",
104 "dirid" =>
"TST_SDIR1",
115 "dirid" =>
"TST_SDIR1",
130 "dirid" =>
"TST_SDIR1",
149 "dirid" =>
"TST_SDIR1",
171 "dirid" =>
"TST_SDIR1",
183 "dirid" =>
"TST_SDIR1",
192 "dirid" =>
"TST_SDIR1",
193 "famid" =>
"TST_BYFOLDER_A",
201 "dirid" =>
"TST_SDIR1",
202 "famid" =>
"TST_BYFOLDER_A",
212 "dirid" =>
"TST_SDIR2",
213 "famid" =>
"TST_BYFOLDER_A",
static getCommonImportFile()
testCountRecurisveSearch($dirId, $famId, $sublevel, $expectedName)
new_Doc($dbaccess, $id= '', $latest=false)
testRecurisveSearch($dirId, $famId, $sublevel, $expectedName)