Projet

Général

Profil

Paste
Télécharger (877 octets) Statistiques
| Branche: | Révision:

root / drupal7 / modules / simpletest / tests / upgrade / upgrade.comment.test @ f7a2490e

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
}