-
Notifications
You must be signed in to change notification settings - Fork 4
/
boilerplate.test
53 lines (44 loc) · 953 Bytes
/
boilerplate.test
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
48
49
50
51
52
53
<?php
/**
* @file
* Tests for boilerplate.module.
*
* Created by: Topsitemakers
* http://www.topsitemakers.com/
*/
/**
* Parent class for module testing.
*
* All other test cases should inherit this case for better structure.
*/
class BoilerplateWebTestCase extends DrupalWebTestCase {
protected $admin_user;
protected $web_user;
protected $node;
/**
* Set up the test case and enable all necessary modules for testing.
*/
public function setUp() {
parent::setUp('boilerplate');
}
}
/**
* Example test case.
*/
class BoilerplateSampleTestCase extends BoilerplateWebTestCase {
/**
* Basic information for this test case.
*/
public static function getInfo() {
return array(
'name' => 'Sample test case',
'description' => 'Sample test case for Boilerplate module.',
'group' => 'Boilerplate',
);
}
/**
* Sample test function.
*/
public function testSample() {
}
}