From dafc861fa3b0bf474524f04b9d9d1b7bfe67d27f Mon Sep 17 00:00:00 2001 From: webchick Date: Sun, 17 Jul 2011 23:57:28 -0700 Subject: Issue #952970 by clemens.tolboom, yched: Fixed Undefined index: required in field_default_form(). --- modules/simpletest/tests/upgrade/upgrade.taxonomy.test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test index dadb98e5a..37de08775 100644 --- a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test +++ b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test @@ -68,6 +68,12 @@ class UpgradePathTaxonomyTestCase extends UpgradePathTestCase { sort($inst_keys); $this->assertEqual($voc_keys, $inst_keys, t('Node type page has instances for every vocabulary.')); + // Ensure instance variables are getting through. + foreach ($instances as $instance) { + $this->assertTrue(isset($instance['required']), 'The required setting was preserved during the upgrade path.'); + $this->assertTrue($instance['description'], 'The description was preserved during the upgrade path'); + } + // Node type 'story' was not explicitly in $vocabulary->nodes but // each node of type 'story' was associated to one or more terms. // Check that the node type 'story' has been associated only to -- cgit v1.2.3