summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/simpletest/tests/upgrade/update.trigger.test
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/simpletest/tests/upgrade/update.trigger.test')
-rw-r--r--kolab.org/www/drupal-7.26/modules/simpletest/tests/upgrade/update.trigger.test37
1 files changed, 37 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/simpletest/tests/upgrade/update.trigger.test b/kolab.org/www/drupal-7.26/modules/simpletest/tests/upgrade/update.trigger.test
new file mode 100644
index 0000000..24ac87c
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/simpletest/tests/upgrade/update.trigger.test
@@ -0,0 +1,37 @@
+<?php
+/**
+ * @file
+ * Provides upgrade path tests for the Trigger module.
+ */
+
+/**
+ * Tests the Trigger 7.0 -> 7.x upgrade path.
+ */
+class TriggerUpdatePathTestCase extends UpdatePathTestCase {
+ public static function getInfo() {
+ return array(
+ 'name' => 'Trigger update path',
+ 'description' => 'Trigger update path tests.',
+ 'group' => 'Upgrade path',
+ );
+ }
+
+ public function setUp() {
+ // Use the filled upgrade path and our trigger data.
+ $this->databaseDumpFiles = array(
+ drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.filled.standard_all.database.php.gz',
+ drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.trigger.database.php',
+ );
+ parent::setUp();
+
+ // Our test data includes node and comment trigger assignments.
+ $this->uninstallModulesExcept(array('comment', 'trigger'));
+ }
+
+ /**
+ * Tests that the upgrade is successful.
+ */
+ public function testFilledUpgrade() {
+ $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.');
+ }
+}