1<?php 2/** 3 * @file 4 * Provides upgrade path tests for the Trigger module. 5 */ 6 7/** 8 * Tests the Trigger 7.0 -> 7.x upgrade path. 9 */ 10class TriggerUpdatePathTestCase extends UpdatePathTestCase { 11 public static function getInfo() { 12 return array( 13 'name' => 'Trigger update path', 14 'description' => 'Trigger update path tests.', 15 'group' => 'Upgrade path', 16 ); 17 } 18 19 public function setUp() { 20 // Use the filled upgrade path and our trigger data. 21 $this->databaseDumpFiles = array( 22 drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.filled.standard_all.database.php.gz', 23 drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-7.trigger.database.php', 24 ); 25 parent::setUp(); 26 27 // Our test data includes node and comment trigger assignments. 28 $this->uninstallModulesExcept(array('comment', 'trigger')); 29 } 30 31 /** 32 * Tests that the upgrade is successful. 33 */ 34 public function testFilledUpgrade() { 35 $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.'); 36 } 37} 38