|
73 | 73 | "@TestCaseSpecDisplay:" |
74 | 74 | ]; |
75 | 75 |
|
76 | | -$tlCfg->keywords->onDeleteCheckFrozenTCVersions = TRUE; |
77 | | -$tlCfg->keywords->onDeleteCheckExecutedTCVersions = TRUE; |
| 76 | +$tlCfg->keywords->onDeleteCheckFrozenTCVersions = true; |
| 77 | +$tlCfg->keywords->onDeleteCheckExecutedTCVersions = true; |
78 | 78 |
|
79 | 79 | // main key testproject PREFIX |
80 | 80 | // element array |
|
125 | 125 | */ |
126 | 126 | $tlCfg->temp_dir = TL_ABS_PATH . 'gui' . DIRECTORY_SEPARATOR . 'templates_c' . |
127 | 127 | DIRECTORY_SEPARATOR; |
128 | | -if (($tpltmp = getenv('TESTLINK_TEMPLATES_C'))) { |
| 128 | +if ($tpltmp = getenv('TESTLINK_TEMPLATES_C')) { |
129 | 129 | $tlCfg->temp_dir = trim($tpltmp); |
130 | 130 | } |
131 | 131 |
|
|
318 | 318 | // ini_set('session.gc_maxlifetime', 60*90); |
319 | 319 |
|
320 | 320 | $tlCfg->notifications->userSignUp = new stdClass(); |
321 | | -$tlCfg->notifications->userSignUp->enabled = TRUE; // @see notifyGlobalAdmins() |
| 321 | +$tlCfg->notifications->userSignUp->enabled = true; // @see notifyGlobalAdmins() |
322 | 322 | $tlCfg->notifications->userSignUp->to = new stdClass(); |
323 | 323 | $tlCfg->notifications->userSignUp->to->roles = array( |
324 | 324 | TL_ROLES_ADMIN |
|
359 | 359 | * put it out of reach via web or configure access denied. |
360 | 360 | */ |
361 | 361 | $tlCfg->log_path = '/var/testlink/logs/'; /* unix example */ |
362 | | -if (($lp = getenv('TESTLINK_LOG_PATH'))) { |
| 362 | +if ($lp = getenv('TESTLINK_LOG_PATH')) { |
363 | 363 | $tlCfg->log_path = trim($lp); |
364 | 364 | } |
365 | 365 |
|
|
598 | 598 | $tlCfg->authentication['ldap'][1]['ldap_surname_field'] = 'sn'; |
599 | 599 |
|
600 | 600 | // Follows Mantisbt idea. |
601 | | -// True if user does not exist on DB, but can be get from LDAP, |
| 601 | +// true if user does not exist on DB, but can be get from LDAP, |
602 | 602 | // the user will be created AUTOMATICALLY with default user role. |
603 | 603 | // Create user with following data from LDAP |
604 | 604 | // mail |
|
609 | 609 | /** |
610 | 610 | * Enable/disable Users to create accounts on login page |
611 | 611 | */ |
612 | | -$tlCfg->user_self_signup = TRUE; |
| 612 | +$tlCfg->user_self_signup = true; |
613 | 613 |
|
614 | 614 | /** |
615 | 615 | * What happens when Administrator push the Reset Password Button |
|
650 | 650 |
|
651 | 651 | /** |
652 | 652 | * XML-RPC API availability - do less than promised ;) |
653 | | - * FALSE => user are not able to generate and set his/her API key. |
| 653 | + * false => user are not able to generate and set his/her API key. |
654 | 654 | * XML-RPC server do not check this config in order to answer or not a call. |
655 | 655 | */ |
656 | 656 |
|
657 | | -$tlCfg->api->enabled = TRUE; |
| 657 | +$tlCfg->api->enabled = true; |
658 | 658 |
|
659 | 659 | // used to display API ID info in the *View pages |
660 | 660 | $tlCfg->api->id_format = "[ID: %s ]"; |
|
923 | 923 | */ |
924 | 924 |
|
925 | 925 | // seems that with config options that will be used on javascript via smarty template variables |
926 | | -// we are having problems using FALSE/TRUE => use 0/1 (or our CONSTANT DISABLED/ENABLED) |
| 926 | +// we are having problems using false/true => use 0/1 (or our CONSTANT DISABLED/ENABLED) |
927 | 927 | $tlCfg->gui->checkNotSaved = ENABLED; |
928 | 928 |
|
929 | 929 | // ---------------------------------------------------------------------------- |
|
938 | 938 | /** |
939 | 939 | * show/hide testcase id on tree menu |
940 | 940 | */ |
941 | | -$tlCfg->treemenu_show_testcase_id = TRUE; |
| 941 | +$tlCfg->treemenu_show_testcase_id = true; |
942 | 942 |
|
943 | 943 | /** |
944 | 944 | * Reorder test cases based on TC Name or External ID in tree on |
|
1034 | 1034 | // Display test case version when creating: |
1035 | 1035 | // - test spec document |
1036 | 1036 | // - test reports |
1037 | | -$tlCfg->document_generator->tc_version_enabled = TRUE; |
| 1037 | +$tlCfg->document_generator->tc_version_enabled = true; |
1038 | 1038 |
|
1039 | 1039 | // ---------------------------------------------------------------------------- |
1040 | 1040 | /* [Test Executions] */ |
|
1050 | 1050 | // DESCending -> last execution on top [STANDARD BEHAVIOUR] |
1051 | 1051 | $tlCfg->exec_cfg->history_order = 'DESC'; |
1052 | 1052 |
|
1053 | | -// TRUE -> the whole execution history for the choosen build will be showed |
1054 | | -// FALSE -> just last execution for the choosen build will be showed [STANDARD BEHAVIOUR] |
1055 | | -$tlCfg->exec_cfg->history_on = FALSE; |
| 1053 | +// true -> the whole execution history for the choosen build will be showed |
| 1054 | +// false -> just last execution for the choosen build will be showed [STANDARD BEHAVIOUR] |
| 1055 | +$tlCfg->exec_cfg->history_on = false; |
1056 | 1056 |
|
1057 | | -// TRUE -> test case VERY LAST (i.e. in any build) execution status will be displayed [STANDARD BEHAVIOUR] |
1058 | | -// FALSE -> only last result on current build. |
1059 | | -$tlCfg->exec_cfg->show_last_exec_any_build = TRUE; |
| 1057 | +// true -> test case VERY LAST (i.e. in any build) execution status will be displayed [STANDARD BEHAVIOUR] |
| 1058 | +// false -> only last result on current build. |
| 1059 | +$tlCfg->exec_cfg->show_last_exec_any_build = true; |
1060 | 1060 |
|
1061 | | -// TRUE -> History for all builds will be shown |
1062 | | -// FALSE -> Only history of the current build will be shown [STANDARD BEHAVIOUR] |
1063 | | -$tlCfg->exec_cfg->show_history_all_builds = FALSE; |
| 1061 | +// true -> History for all builds will be shown |
| 1062 | +// false -> Only history of the current build will be shown [STANDARD BEHAVIOUR] |
| 1063 | +$tlCfg->exec_cfg->show_history_all_builds = false; |
1064 | 1064 |
|
1065 | | -// TRUE -> History for all platforms (if any exists for test plan) will be shown |
1066 | | -// FALSE -> Only history of the current platform will be shown [STANDARD BEHAVIOUR] |
1067 | | -$tlCfg->exec_cfg->show_history_all_platforms = FALSE; |
| 1065 | +// true -> History for all platforms (if any exists for test plan) will be shown |
| 1066 | +// false -> Only history of the current platform will be shown [STANDARD BEHAVIOUR] |
| 1067 | +$tlCfg->exec_cfg->show_history_all_platforms = false; |
1068 | 1068 |
|
1069 | 1069 | // different models for the attachments management on execution page |
1070 | 1070 | // $att_model_m1 -> shows upload button and title |
|
1217 | 1217 | // COPY OR NOT issues linked to latest execution to the new execution |
1218 | 1218 | // DEAFULT false => no option on GUI |
1219 | 1219 |
|
1220 | | -$tlCfg->exec_cfg->copyLatestExecIssues->enabled = FALSE; |
| 1220 | +$tlCfg->exec_cfg->copyLatestExecIssues->enabled = false; |
1221 | 1221 |
|
1222 | 1222 | // value to set as default |
1223 | | -$tlCfg->exec_cfg->copyLatestExecIssues->default = FALSE; |
| 1223 | +$tlCfg->exec_cfg->copyLatestExecIssues->default = false; |
1224 | 1224 |
|
1225 | 1225 | // you can choose only between columns present on |
1226 | 1226 | // (see exec.inc.php, function get_bugs_for_exec()) |
|
1259 | 1259 | // ---------------------------------------------------------------------- |
1260 | 1260 | /* [Test Specification] */ |
1261 | 1261 |
|
1262 | | -// TRUE will be displayed when displayed a test case |
1263 | | -$tlCfg->spec_cfg->show_tplan_usage = TRUE; |
| 1262 | +// true will be displayed when displayed a test case |
| 1263 | +$tlCfg->spec_cfg->show_tplan_usage = true; |
1264 | 1264 |
|
1265 | 1265 | // 'horizontal' -> step and results on the same row |
1266 | 1266 | // 'vertical' -> steps on one row, results in the row bellow |
|
1305 | 1305 | // There are some preconfigured standard types which you can use, |
1306 | 1306 | // additionally you can configure your own types. |
1307 | 1307 | $tlCfg->testcase_cfg->relations = new stdClass(); |
1308 | | -$tlCfg->testcase_cfg->relations->enable = TRUE; |
1309 | | -$tlCfg->testcase_cfg->relations->interproject_linking = FALSE; |
| 1308 | +$tlCfg->testcase_cfg->relations->enable = true; |
| 1309 | +$tlCfg->testcase_cfg->relations->interproject_linking = false; |
1310 | 1310 |
|
1311 | 1311 | /** |
1312 | 1312 | * Localization identifiers for test cases relation types |
|
1358 | 1358 | ]; |
1359 | 1359 |
|
1360 | 1360 | // @since 1.9.18 |
1361 | | -// TRUE => After a test case version has been executed |
| 1361 | +// true => After a test case version has been executed |
1362 | 1362 | // attachment on test case spec can not be added/removed |
1363 | 1363 | // |
1364 | | -// FALSE |
| 1364 | +// false |
1365 | 1365 | // |
1366 | 1366 | // This means that at GUI Level, will not be possible: |
1367 | 1367 | // add a new attachment to an Executed Test Case Version |
1368 | 1368 | // delete an attachment from Executed Test Case Version |
1369 | | -$tlCfg->testcase_cfg->downloadOnlyAfterExec = TRUE; |
| 1369 | +$tlCfg->testcase_cfg->downloadOnlyAfterExec = true; |
1370 | 1370 |
|
1371 | 1371 | // This means that at GUI Level, will not be possible: |
1372 | 1372 | // add a new req version link to an Executed Test Case Version |
1373 | 1373 | // delete a req version link from Executed Test Case Version |
1374 | | -$tlCfg->testcase_cfg->reqLinkingDisabledAfterExec = TRUE; |
| 1374 | +$tlCfg->testcase_cfg->reqLinkingDisabledAfterExec = true; |
1375 | 1375 |
|
1376 | 1376 | // Effects on Linked Requirements Version after |
1377 | 1377 | // execution of a Test Case Version |
1378 | | -$tlCfg->testcase_cfg->freezeReqVersionAfterExec = TRUE; |
| 1378 | +$tlCfg->testcase_cfg->freezeReqVersionAfterExec = true; |
1379 | 1379 |
|
1380 | 1380 | // Effects on TCVersion N when TCVersion N+1 is created |
1381 | | -$tlCfg->testcase_cfg->freezeTCVersionOnNewTCVersion = TRUE; |
1382 | | -$tlCfg->testcase_cfg->freezeTCVRelationsOnNewTCVersion = TRUE; |
| 1381 | +$tlCfg->testcase_cfg->freezeTCVersionOnNewTCVersion = true; |
| 1382 | +$tlCfg->testcase_cfg->freezeTCVRelationsOnNewTCVersion = true; |
1383 | 1383 |
|
1384 | 1384 | // Because: |
1385 | 1385 | // The Relation must be frozen (cannot be deleted) when |
|
1389 | 1389 | // this new configuration will allow this operation |
1390 | 1390 | // only on latest test case version |
1391 | 1391 | // |
1392 | | -$tlCfg->testcase_cfg->addTCVRelationsOnlyOnLatestTCVersion = TRUE; |
| 1392 | +$tlCfg->testcase_cfg->addTCVRelationsOnlyOnLatestTCVersion = true; |
1393 | 1393 |
|
1394 | 1394 | // Not Already Implemented |
1395 | | -// $tlCfg->testcase_cfg->allowAddTCVRelationsOnOldTCVersion = TRUE; |
| 1395 | +// $tlCfg->testcase_cfg->allowAddTCVRelationsOnOldTCVersion = true; |
1396 | 1396 |
|
1397 | | -// $tlCfg->testcase_cfg->frozenNotExecutedTCVDelAttachtments = FALSE; |
1398 | | -// $tlCfg->testcase_cfg->frozenNotExecutedTCVAddAttachtments = FALSE; |
1399 | | -// $tlCfg->testcase_cfg->frozenNotExecutedTCVAddTCVRel = FALSE; |
1400 | | -// $tlCfg->testcase_cfg->frozenNotExecutedTCVDelTCVRel = FALSE; |
1401 | | -// $tlCfg->testcase_cfg->frozenNotExecutedTCVAddREQVLink = FALSE; |
1402 | | -// $tlCfg->testcase_cfg->frozenNotExecutedTCVDelREQVLink = FALSE; |
| 1397 | +// $tlCfg->testcase_cfg->frozenNotExecutedTCVDelAttachtments = false; |
| 1398 | +// $tlCfg->testcase_cfg->frozenNotExecutedTCVAddAttachtments = false; |
| 1399 | +// $tlCfg->testcase_cfg->frozenNotExecutedTCVAddTCVRel = false; |
| 1400 | +// $tlCfg->testcase_cfg->frozenNotExecutedTCVDelTCVRel = false; |
| 1401 | +// $tlCfg->testcase_cfg->frozenNotExecutedTCVAddREQVLink = false; |
| 1402 | +// $tlCfg->testcase_cfg->frozenNotExecutedTCVDelREQVLink = false; |
1403 | 1403 |
|
1404 | 1404 | // Change order using CSS flexbox model |
1405 | 1405 | // @used-by tcEdit.tpl |
|
1411 | 1411 | // Effects on Req Version to TCVersion LINK |
1412 | 1412 | // when a new version of a linked Test Case is created |
1413 | 1413 | // If LINK is frozen, then this means that link can not be deleted. |
1414 | | -// $tlCfg->reqTCLinks->freezeLinkOnNewTCVersion = FALSE; |
| 1414 | +// $tlCfg->reqTCLinks->freezeLinkOnNewTCVersion = false; |
1415 | 1415 | // |
1416 | 1416 | // Important Notice: |
1417 | 1417 | // Req Version to TCVersion Link can be done ONLY TO LATEST TCV. |
|
1427 | 1427 | // on GUI on the Assign Requirements Feature: |
1428 | 1428 | // this option has EFFECT |
1429 | 1429 | // |
1430 | | -$tlCfg->reqTCLinks->freezeLinkOnNewTCVersion = TRUE; |
| 1430 | +$tlCfg->reqTCLinks->freezeLinkOnNewTCVersion = true; |
1431 | 1431 |
|
1432 | 1432 | // Effects on Req Version to TCVersion LINK |
1433 | 1433 | // when a new version of a linked Req Version is created |
1434 | | -$tlCfg->reqTCLinks->freezeLinkOnNewREQVersion = TRUE; |
| 1434 | +$tlCfg->reqTCLinks->freezeLinkOnNewREQVersion = true; |
1435 | 1435 |
|
1436 | 1436 | // Effects on BOTH ends of Req Version to TCVersion LINK |
1437 | 1437 | // when a new version of a linked TC Version is created |
1438 | | -$tlCfg->reqTCLinks->freezeBothEndsOnNewTCVersion = TRUE; |
| 1438 | +$tlCfg->reqTCLinks->freezeBothEndsOnNewTCVersion = true; |
1439 | 1439 |
|
1440 | 1440 | // Effects on BOTH ends of Req Version to TCVersion LINK |
1441 | 1441 | // when a new version of a linked REQ Version is created |
1442 | | -$tlCfg->reqTCLinks->freezeBothEndsOnNewREQVersion = TRUE; |
| 1442 | +$tlCfg->reqTCLinks->freezeBothEndsOnNewREQVersion = true; |
1443 | 1443 |
|
1444 | 1444 | // Effects on REQ Version N when REQ Version N+1 is created |
1445 | | -$tlCfg->req_cfg->freezeREQVersionOnNewREQVersion = TRUE; |
| 1445 | +$tlCfg->req_cfg->freezeREQVersionOnNewREQVersion = true; |
1446 | 1446 |
|
1447 | 1447 | /** |
1448 | 1448 | * text template for a new items: |
|
1540 | 1540 | * Attachment feature availability |
1541 | 1541 | */ |
1542 | 1542 | $tlCfg->attachments = new stdClass(); |
1543 | | -$tlCfg->attachments->enabled = TRUE; |
| 1543 | +$tlCfg->attachments->enabled = true; |
1544 | 1544 |
|
1545 | | -// TRUE -> when you upload a file you can give no title |
1546 | | -$tlCfg->attachments->allow_empty_title = TRUE; |
| 1545 | +// true -> when you upload a file you can give no title |
| 1546 | +$tlCfg->attachments->allow_empty_title = true; |
1547 | 1547 |
|
1548 | | -// $tlCfg->attachments->allow_empty_title == TRUE, you can ask the system |
| 1548 | +// $tlCfg->attachments->allow_empty_title == true, you can ask the system |
1549 | 1549 | // to do something |
1550 | 1550 | // |
1551 | 1551 | // 'none' -> just write on db an empty title |
|
1599 | 1599 | * Put it out of reach via web or configure access denied. |
1600 | 1600 | */ |
1601 | 1601 | $g_repositoryPath = '/var/testlink/upload_area/'; /* unix example */ |
1602 | | -if (($upa = getenv('TESTLINK_UPLOAD_AREA'))) { |
| 1602 | +if ($upa = getenv('TESTLINK_UPLOAD_AREA')) { |
1603 | 1603 | $g_repositoryPath = trim($upa); |
1604 | 1604 | } |
1605 | 1605 |
|
|
1620 | 1620 | // HAS TO BE REMOVED - > req_doc_id UNIQUE INSIDE test project |
1621 | 1621 | // true : you want req_doc_id UNIQUE IN THE WHOLE DB (system_wide) |
1622 | 1622 | // false: you want req_doc_id UNIQUE INSIDE a SRS |
1623 | | -// $tlCfg->req_cfg->reqdoc_id->is_system_wide = FALSE; |
| 1623 | +// $tlCfg->req_cfg->reqdoc_id->is_system_wide = false; |
1624 | 1624 |
|
1625 | 1625 | $tlCfg->req_cfg->monitor_enabled = true; |
1626 | 1626 |
|
|
1629 | 1629 |
|
1630 | 1630 | /** |
1631 | 1631 | * Test Case generation from Requirements - use_req_spec_as_testsuite_name |
1632 | | - * FALSE => test cases are created and assigned to a test suite |
| 1632 | + * false => test cases are created and assigned to a test suite |
1633 | 1633 | * with name $tlCfg->req_cfg->default_testsuite_name |
1634 | | - * TRUE => REQuirement Specification Title is used as testsuite name |
| 1634 | + * true => REQuirement Specification Title is used as testsuite name |
1635 | 1635 | */ |
1636 | | -$tlCfg->req_cfg->use_req_spec_as_testsuite_name = TRUE; |
| 1636 | +$tlCfg->req_cfg->use_req_spec_as_testsuite_name = true; |
1637 | 1637 | $tlCfg->req_cfg->default_testsuite_name = "Auto-created Test cases"; |
1638 | 1638 | $tlCfg->req_cfg->testsuite_details = "Test Cases in the Test Suite are generated from Requirements. " . |
1639 | 1639 | "A refinement of test scenario is highly recommended."; |
|
1728 | 1728 | $tlCfg->internal_links = new stdClass(); |
1729 | 1729 |
|
1730 | 1730 | // |
1731 | | -// TRUE: links to other requirements/requirement specifications are |
| 1731 | +// true: links to other requirements/requirement specifications are |
1732 | 1732 | // automatically generated from the corresponding Document ID, enclosed by tags (like BBCode). |
1733 | 1733 | // |
1734 | 1734 | // Usage: |
|
1740 | 1740 | // [req tproj=<tproj_prefix> anchor=<anchor_name>]req_doc_id[/req] |
1741 | 1741 | // This syntax also works for requirement specifications. |
1742 | 1742 | // |
1743 | | -// FALSE: no links are automatically created. |
| 1743 | +// false: no links are automatically created. |
1744 | 1744 | // |
1745 | | -$tlCfg->internal_links->enable = TRUE; |
| 1745 | +$tlCfg->internal_links->enable = true; |
1746 | 1746 |
|
1747 | 1747 | // how a linked document (requirement/requirement specification) should be displayed. |
1748 | 1748 | // posible values: |
|
1775 | 1775 | // There are some preconfigured standard types which you can use, |
1776 | 1776 | // additionally you can configure your own types. |
1777 | 1777 | $tlCfg->req_cfg->relations = new stdClass(); |
1778 | | -$tlCfg->req_cfg->relations->enable = TRUE; |
1779 | | -$tlCfg->req_cfg->relations->interproject_linking = FALSE; |
| 1778 | +$tlCfg->req_cfg->relations->enable = true; |
| 1779 | +$tlCfg->req_cfg->relations->interproject_linking = false; |
1780 | 1780 |
|
1781 | 1781 | // Requirement/testcase diff |
1782 | 1782 | // default value of lines to show before and after each difference |
|
1911 | 1911 | $tlCfg->tree_filter_cfg->testcases->plan_mode->filter_custom_fields = ENABLED; |
1912 | 1912 | $tlCfg->tree_filter_cfg->testcases->plan_mode->filter_result = ENABLED; |
1913 | 1913 | $tlCfg->tree_filter_cfg->testcases->plan_mode->advanced_filter_mode_choice = ENABLED; |
1914 | | -$tlCfg->tree_filter_cfg->testcases->plan_mode->setting_build_inactive_out = FALSE; |
1915 | | -$tlCfg->tree_filter_cfg->testcases->plan_mode->setting_build_close_out = FALSE; |
| 1914 | +$tlCfg->tree_filter_cfg->testcases->plan_mode->setting_build_inactive_out = false; |
| 1915 | +$tlCfg->tree_filter_cfg->testcases->plan_mode->setting_build_close_out = false; |
1916 | 1916 |
|
1917 | 1917 | $tlCfg->tree_filter_cfg->testcases->plan_add_mode->filter_tc_id = ENABLED; |
1918 | 1918 | $tlCfg->tree_filter_cfg->testcases->plan_add_mode->filter_testcase_name = ENABLED; |
|
2225 | 2225 | } |
2226 | 2226 | } |
2227 | 2227 |
|
2228 | | -if (false !== $serverLanguage) { |
2229 | | - if (array_key_exists($serverLanguage, $tlCfg->locales)) { |
2230 | | - $tlCfg->default_language = $serverLanguage; |
2231 | | - } |
| 2228 | +if (false !== $serverLanguage && |
| 2229 | + array_key_exists($serverLanguage, $tlCfg->locales)) { |
| 2230 | + $tlCfg->default_language = $serverLanguage; |
2232 | 2231 | } |
2233 | 2232 | define('TL_DEFAULT_LOCALE', $tlCfg->default_language); |
2234 | 2233 |
|
|
0 commit comments