function DisabledNodeTypeTestCase::testDisabledNodeTypeUpgrade
Tests a successful upgrade.
File
-
modules/
simpletest/ tests/ upgrade/ upgrade.node.test, line 82
Class
- DisabledNodeTypeTestCase
- Tests the upgrade path for node disabled node types.
Code
public function testDisabledNodeTypeUpgrade() {
if ($this->skipUpgradeTest) {
return;
}
$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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.