HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/public_html/modules/simpletest/tests/upgrade/upgrade.trigger.test
<?php
/**
 * @file
 * Provides upgrade path tests for the Trigger module.
 */

/**
 * Tests the Trigger 6 -> 7 upgrade path.
 */
class UpgradePathTriggerTestCase extends UpgradePathTestCase {
  public static function getInfo() {
    return array(
      'name'  => 'Trigger upgrade path',
      'description'  => 'Trigger upgrade path tests for Drupal 6.x.',
      'group' => 'Upgrade path',
    );
  }

  public function setUp() {
    // Path to the database dump.
    $this->databaseDumpFiles = array(
      drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.filled.database.php',
      drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.trigger.database.php',
    );
    parent::setUp();
  }

  /**
   * Basic tests for the trigger upgrade.
   */
  public function testTaxonomyUpgrade() {
    $this->assertTrue($this->performUpgrade(), t('The upgrade was completed successfully.'));
    $this->drupalGet('admin/structure/trigger/node');
    $this->assertRaw('<td>'. t('Make post sticky') .'</td>');
    $this->assertRaw('<td>'. t('Publish post') .'</td>');
    $this->drupalGet('admin/structure/trigger/comment');
    $this->assertRaw('<td>'. t('Publish comment') .'</td>');
  }
}