function UpgradePathTriggerTestCase::testTaxonomyUpgrade

Basic tests for the trigger upgrade.

File

modules/simpletest/tests/upgrade/upgrade.trigger.test, line 31

Class

UpgradePathTriggerTestCase
Tests the Trigger 6 -> 7 upgrade path.

Code

public function testTaxonomyUpgrade() {
    if ($this->skipUpgradeTest) {
        return;
    }
    $this->assertTrue($this->performUpgrade(), '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>');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.