-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpunit_example.module
More file actions
47 lines (43 loc) · 954 Bytes
/
phpunit_example.module
File metadata and controls
47 lines (43 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* @file
* Module file for phpunit_example.
*/
/**
* @defgroup phpunit_example Example: PHPUnit
* @ingroup examples
* @{
* This example demonstrates PHPUnit for Drupal 8 unit testing.
*/
/**
* Implements hook_help().
*
* @see hook_help()
*/
function phpunit_example_help($path, $arg) {
switch ($path) {
case 'examples/phpunit_example':
// Help text for the simple page registered for this path.
return t('This is the help text for PHPUnit example.');
}
}
/**
* Implements hook_menu().
*
* We will define a single menu route, so that we can give the user some
* helpful introductory information.
*
* @see hook_menu()
* @see menu_example
*/
function phpunit_example_menu() {
$items['examples/phpunit_example'] = array(
'title' => 'PHPUnit Example',
'route_name' => 'phpunit_example_description',
'expanded' => TRUE,
);
return $items;
}
/**
* @} End of "defgroup phpunit_example".
*/