Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
PU_test_dcp_help_usage.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 
7 namespace Dcp\Pu;
8 
9 require_once 'PU_testcase_dcp.php';
10 
12 {
13  /**
14  * @dataProvider dataTextHelpUsage
15  * @param string $api
16  */
17  public function testTextHelpUsage($api)
18  {
19  $output = array();
20  exec(getWshCmd() . " --api=" . $api . " --help 2> /dev/null", $output);
21  $this->assertTrue($output[1] == "Usage :", "String usage not found for api " . $api);
22  }
23 
24  public function dataTextHelpUsage()
25  {
26  return array(
27  array(
28  "manageApplications"
29  ) ,
30  array(
31  "change_action"
32  ) ,
33  array(
34  "manageContextCrontab"
35  ) ,
36  array(
37  "csv2sql"
38  ) ,
39  array(
40  "initializeDocrelTable"
41  ) ,
42  array(
43  "generateDocumentClass"
44  ) ,
45  array(
46  "processExecute"
47  ) ,
48  array(
49  "destroyFamily"
50  ) ,
51  array(
52  "fdl_execute"
53  ) ,
54  array(
55  "fdl_export1nf"
56  ) ,
57  array(
58  "fdl_resetprofiling"
59  ) ,
60  array(
61  "fdl_sendmail"
62  ) ,
63  array(
64  "fdl_trigger"
65  ) ,
66  array(
67  "fixMultipleAliveRevision"
68  ) ,
69  array(
70  "cleanContext"
71  ) ,
72  array(
73  "freedom_import"
74  ) ,
75  array( //deprecated
76  "freedom_refresh"
77  ) ,
78  array(
79  "FullFileIndex"
80  ) ,
81  array(
82  "fulltextReinit"
83  ) ,
84  array(
85  "getApplicationParameter"
86  ) ,
87  array(
88  "importDocuments"
89  ) ,
90  array(
91  "import_size"
92  ) ,
93  array(
94  "setStyle"
95  ) ,
96  array(
97  "initViewPrivileges"
98  ) ,
99  array(
100  "ods2csv"
101  ) ,
102  array(
103  "refreshDocuments"
104  ) ,
105  array(
106  "refreshjsversion"
107  ) ,
108  array(
109  "SetDocVaultIndex"
110  ) ,
111  array(
112  "setApplicationParameter"
113  ) ,
114  array(
115  "updateclass"
116  ) ,
117  array(
118  "updatetitles"
119  ) ,
120  array(
121  "refreshUserAccount"
122  ) ,
123  array(
124  "refreshGroups"
125  ) ,
126  array(
127  "checkVault"
128  ) ,
129  array(
130  "vault_init"
131  ) ,
132  array(
133  "wdoc_graphviz"
134  )
135  );
136  }
137 }
getWshCmd($nice=false, $userid=0, $sudo=false)
Definition: Lib.Common.php:594
← centre documentaire © anakeen