class PMPersonTestCase in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmperson/pmperson.test \PMPersonTestCase
- 7 pmperson/pmperson.test \PMPersonTestCase
- 7.2 pmperson/pmperson.test \PMPersonTestCase
Define a test case for PM Person.
Hierarchy
- class \PMPersonTestCase extends \DrupalWebTestCase
Expanded class hierarchy of PMPersonTestCase
File
- pmperson/
pmperson.test, line 10 - Test definitions for PM Person.
View source
class PMPersonTestCase extends DrupalWebTestCase {
/**
* Defines test meta-data.
*/
public static function getInfo() {
return array(
'name' => 'PM Person functionality',
'description' => 'Test the functionality of the PM Person module',
'group' => 'Project Management',
);
}
/**
* Set up environment for test.
*/
public function setUp() {
parent::setUp('pm', 'pmperson');
}
/**
* Tests module uninstall path.
*/
public function testpmpersonUninstall() {
$module = array(
'pmperson',
);
module_disable($module);
$result = drupal_uninstall_modules($module);
$this
->AssertTrue($result, t('Module successfully uninstalled.'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PMPersonTestCase:: |
public static | function | Defines test meta-data. | |
PMPersonTestCase:: |
public | function | Set up environment for test. | |
PMPersonTestCase:: |
public | function | Tests module uninstall path. |