From 7fd52471cef0b55353e53367890d620c08cdaf86 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 11 Sep 2010 21:52:59 +0000 Subject: #898520 by chx, Damien Tournoud: Changed Clean-up the upgrade path: comment. --- .../simpletest/tests/upgrade/upgrade.comment.test | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/simpletest/tests/upgrade/upgrade.comment.test (limited to 'modules/simpletest/tests/upgrade/upgrade.comment.test') diff --git a/modules/simpletest/tests/upgrade/upgrade.comment.test b/modules/simpletest/tests/upgrade/upgrade.comment.test new file mode 100644 index 000000000..db899427b --- /dev/null +++ b/modules/simpletest/tests/upgrade/upgrade.comment.test @@ -0,0 +1,33 @@ + 'Comment upgrade path', + 'description' => 'Comment upgrade path tests.', + 'group' => 'Upgrade path', + ); + } + + public function setUp() { + // Path to the database dump files. + $this->databaseDumpFiles = array( + drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.filled.database.php', + drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.comments.database.php', + ); + parent::setUp(); + + $this->uninstallModulesExcept(array('comment')); + } + + /** + * Test a successful upgrade. + */ + public function testCommentUpgrade() { + $this->assertTrue($this->performUpgrade(), t('The upgrade was completed successfully.')); + } +} -- cgit v1.2.3