public function UpgradePathTriggerTestCase::testTaxonomyUpgrade in Drupal 7
Basic tests for the trigger upgrade.
File
- modules/
simpletest/ tests/ upgrade/ upgrade.trigger.test, line 31 - Provides upgrade path tests for the Trigger module.
Class
- UpgradePathTriggerTestCase
- Tests the Trigger 6 -> 7 upgrade path.
Code
public function testTaxonomyUpgrade() {
$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>');
}