You are here

public function DisabledNodeTypeTestCase::testDisabledNodeTypeUpgrade in Drupal 7

Tests a successful upgrade.

File

modules/simpletest/tests/upgrade/upgrade.node.test, line 79

Class

DisabledNodeTypeTestCase
Tests the upgrade path for node disabled node types.

Code

public function testDisabledNodeTypeUpgrade() {
  $this
    ->assertTrue($this
    ->performUpgrade(), 'The upgrade was completed successfully.');
  $this
    ->assertTrue(field_info_instance('comment', 'comment_body', 'comment_node_broken'), 'Comment body field instance was created for comments attached to the disabled broken node type');
}