Security update for permissions_by_term
[yaffs-website] / vendor / drush / drush / tests / completetest.drush.inc
1 <?php
2 /**
3  * @file
4  *   Commands and options for complete unit tests, to avoid relying on the
5  *   ever-changing core command set.
6  */
7
8 /**
9  * Implementation of hook_drush_command().
10  */
11 function completetest_drush_command() {
12   $commands = array(
13     'aaaaaaaard',
14     'aaaaaaaard-ant',
15     'aaaaaaaard-vark',
16     'aaaaaaaard-wolf',
17     'zzzzzzzzebra',
18   );
19   foreach ($commands as $command) {
20     $items[$command] = array(
21       'description' => 'No-op command, used to test various completions for commands that start the same as other commands.',
22       'bootstrap' => DRUSH_BOOTSTRAP_NONE,
23       'callback' => 'drush_completetest_noop',
24       'command-hook' => 'completetest_noop',
25     );
26   }
27   $items['aaaaaaaard']['arguments'] = array('name' => 'Name');
28   $items['aaaaaaaard']['options'] = array(
29     'ears' => 'Ears',
30     'eyes' => 'Eyes',
31     'nose' => 'Nose',
32     'legs' => 'Legs',
33   );
34   return $items;
35 }
36
37 function drush_completetest_noop() {
38   // No-op.
39 }
40
41 /**
42  * Command argument complete callback.
43  *
44  * @return
45  *  Array of completions.
46  */
47 function completetest_completetest_noop_complete() {
48   return array(
49     'values' => array(
50       'aardvark',
51       'aardwolf',
52       'zebra',
53     ),
54   );
55 }