You are here

class PMPersonTestCase in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmperson/pmperson.test \PMPersonTestCase
  2. 7 pmperson/pmperson.test \PMPersonTestCase
  3. 7.2 pmperson/pmperson.test \PMPersonTestCase

Define a test case for PM Person.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
PMPersonTestCase::getInfo public static function Defines test meta-data.
PMPersonTestCase::setUp public function Set up environment for test.
PMPersonTestCase::testpmpersonUninstall public function Tests module uninstall path.