cms/drupal/modules/simpletest/tests/upgrade/upgrade.comment.test
changeset 541 e756a8c72c3d
equal deleted inserted replaced
540:07239de796bb 541:e756a8c72c3d
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * Upgrade test for comment.module.
       
     5  */
       
     6 class CommentUpgradePathTestCase extends UpgradePathTestCase {
       
     7   public static function getInfo() {
       
     8     return array(
       
     9       'name'  => 'Comment upgrade path',
       
    10       'description'  => 'Comment upgrade path tests.',
       
    11       'group' => 'Upgrade path',
       
    12     );
       
    13   }
       
    14 
       
    15   public function setUp() {
       
    16     // Path to the database dump files.
       
    17     $this->databaseDumpFiles = array(
       
    18       drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.filled.database.php',
       
    19       drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.comments.database.php',
       
    20     );
       
    21     parent::setUp();
       
    22 
       
    23     $this->uninstallModulesExcept(array('comment'));
       
    24   }
       
    25 
       
    26   /**
       
    27    * Test a successful upgrade.
       
    28    */
       
    29   public function testCommentUpgrade() {
       
    30     $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.');
       
    31   }
       
    32 }