upgrade.comment.test 880 B

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