13 require_once
'PU_testcase_dcp.php';
28 "appRoot" => join(DIRECTORY_SEPARATOR, array(
33 "appName" =>
"TST_PARAMETER_MANAGER"
41 private function initTestApplication($parameters)
44 $appTest->name = self::appName;
45 $appTest->childof =
'TST_PARAMETER_MANAGER';
46 $err = $appTest->Add();
48 $this->assertEmpty(
$err,
"Cannot create application : $err");
50 $appTest->set(self::appName,
$parent);
52 $this->assertTrue($appTest->isAffected() , sprintf(
"DCPTEST2 app not found"));
54 $appTest->InitAllParam($parameters, $update =
false);
57 $a->parent->param->SetKey($appTest->id,
$a->user->id);
68 $appTest = $this->initTestApplication($parameters);
70 foreach ($expectedValues as $k => $v) {
80 $appTest = $this->initTestApplication($parameters);
82 foreach ($expectedValues as $k => $v) {
92 $appTest = $this->initTestApplication($parameters);
94 foreach ($newValues as $k => $v) {
97 foreach ($expectedValues as $k => $v) {
107 $appTest = $this->initTestApplication($parameters);
109 foreach ($newValues as $k => $v) {
113 foreach ($expectedValues as $k => $v) {
123 $appTest = $this->initTestApplication($parameters);
125 foreach ($newValues as $k => $v) {
128 foreach ($expectedValues as $k => $v) {
138 $appTest = $this->initTestApplication($parameters);
140 foreach ($newValues as $k => $v) {
144 foreach ($expectedValues as $k => $v) {
154 "VERSION" =>
"4.0.8",
155 "TST_NAMEP1" => array(
157 "descr" =>
"Name of test one",
161 "TST_GLOB2" => array(
162 "val" =>
"Test global 2",
163 "descr" =>
"Name of the glob",
169 "TST_NAMEP1" =>
"Test 3",
170 "TST_GLOB2" =>
"Test G3",
173 "TST_NAMEP1" =>
"Test 3",
174 "VERSION" =>
"4.0.8",
175 "TST_GLOB2" =>
"Test G3"
186 "VERSION" =>
"0.3.2-2",
187 "PARENT_USER_PARAMETER" =>
"128",
188 "TST_NAMEP1" => array(
190 "descr" =>
"Name of test one",
194 "TST_GLOB2" => array(
195 "val" =>
"Test global 2",
196 "descr" =>
"Name of the glob",
202 "PARENT_USER_PARAMETER" =>
"128,127",
203 "TST_NAMEP1" =>
"Test 3",
206 "TST_NAMEP1" =>
"Test 3",
207 "PARENT_USER_PARAMETER" =>
"128,127",
208 "TST_GLOB2" =>
"Test global 2"
218 "VERSION" =>
"4.0.8",
219 "PARENT_USER_GLOBAL_PARAMETER" =>
"128",
220 "TST_NAMEP1" => array(
222 "descr" =>
"Name of test one",
226 "TST_GLOB2" => array(
227 "val" =>
"Test global 2",
228 "descr" =>
"Name of the glob",
234 "TST_NAMEP1" =>
"Test 3",
235 "TST_GLOB2" =>
"Test G3",
238 "TST_NAMEP1" =>
"Test 3",
239 "VERSION" =>
"4.0.8",
240 "TST_GLOB2" =>
"Test G3"
250 "VERSION" =>
"0.3.2-2",
251 "PARENT_USER_PARAMETER" =>
"128",
252 "TST_NAMEP1" => array(
254 "descr" =>
"Name of test one",
258 "TST_GLOB2" => array(
259 "val" =>
"Test global 2",
260 "descr" =>
"Name of the glob",
266 "VERSION" =>
"4.0.7",
267 "PARENT_USER_PARAMETER" =>
"128,127",
268 "TST_NAMEP1" =>
"Test 3",
271 "TST_NAMEP1" =>
"Test 3",
272 "VERSION" =>
"4.0.7",
273 "PARENT_USER_PARAMETER" =>
"128,127",
274 "TST_GLOB2" =>
"Test global 2"
285 "VERSION" =>
"0.3.2-2",
286 "PARENT_PARAMETER" =>
"128",
287 "TST_NAMEP1" => array(
289 "descr" =>
"Name of test one",
293 "TST_GLOB1" => array(
294 "val" =>
"Test global 1",
295 "descr" =>
"Name of the glob",
301 "TST_NAMEP1" =>
"Test 1",
302 "VERSION" =>
"0.3.2-2",
303 "PARENT_PARAMETER" =>
"128",
304 "TST_GLOB1" =>
"Test global 1"
315 "VERSION" =>
"0.3.2-2",
316 "PARENT_USER_GLOBAL_PARAMETER" =>
"128",
317 "TST_NAMEP1" => array(
319 "descr" =>
"Name of test one",
323 "TST_GLOB1" => array(
324 "val" =>
"Test global 2",
325 "descr" =>
"Name of the glob",
331 "TST_GLOB1" =>
"Test global 2"
static setUserApplicationParameter($appName, $name, $value, $userId=null)
testSetUserApplicationParameter($parameters, array $newValues, array $expectedValues)
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
static getParameter($name)
static setGlobalParameter($name, $value)
testSetApplicationParameter($parameters, array $newValues, array $expectedValues)
static getApplicationParameter($appName, $name)
static setGlobalUserParameter($name, $value, $userId=null)
testSetGlobalParameter($parameters, array $newValues, array $expectedValues)
dataSetApplicationParameter()
dataSetUserApplicationParameter()
testGetGlobalParam($parameters, array $expectedValues)
static setApplicationParameter($appName, $name, $value)
testGetParam($parameters, array $expectedValues)
if($file) if($subject==""&&$file) if($subject=="") $err
testSetUserGlobalParameter($parameters, array $newValues, array $expectedValues)
dataUserSetGlobalParameter()