summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-07-17 23:53:32 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-07-17 23:53:32 -0700
commita3f4ab154828c90f4bc37ea4bf8edff8573921db (patch)
treea8cfcb7759b1240712c2c2b5c25cb8415a82801c /modules/simpletest
parent5dc4ddd927928a2a6b0209331d3d66d201d3e7b5 (diff)
downloadbrdo-a3f4ab154828c90f4bc37ea4bf8edff8573921db.tar.gz
brdo-a3f4ab154828c90f4bc37ea4bf8edff8573921db.tar.bz2
Issue #931512 by ahwebd, catch, tobiasb: Fixed Node body 'description' and 'required' are missed on nodes upgraded from D6 to D7.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/upgrade/upgrade.node.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/simpletest/tests/upgrade/upgrade.node.test b/modules/simpletest/tests/upgrade/upgrade.node.test
index 163dbef5e..cd44790c7 100644
--- a/modules/simpletest/tests/upgrade/upgrade.node.test
+++ b/modules/simpletest/tests/upgrade/upgrade.node.test
@@ -27,6 +27,11 @@ class NodeBodyUpgradePathTestCase extends UpgradePathTestCase {
*/
public function testNodeBodyUpgrade() {
$this->assertTrue($this->performUpgrade(), t('The upgrade was completed successfully.'));
+
+ $instance = field_info_instance('node', 'body', 'story');
+ $this->assertIdentical($instance['required'], 0, 'The required setting was preserved during the upgrade path.');
+ $this->assertTrue($instance['description'], 'The description was preserved during the upgrade path');
+
$this->drupalGet("content/1263769200");
$this->assertText('node body (broken) - 37');