You are here

pmperson.test in Drupal PM (Project Management) 7.3

Test definitions for PM Person.

File

pmperson/pmperson.test
View source
<?php

/**
 * @file
 * Test definitions for PM Person.
 */

/**
 * Define a test case for PM Person.
 */
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.'));
  }

}

Classes

Namesort descending Description
PMPersonTestCase Define a test case for PM Person.