summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-07-17 23:57:28 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-07-17 23:57:28 -0700
commitdafc861fa3b0bf474524f04b9d9d1b7bfe67d27f (patch)
tree536f2f3b42f3171d3fcc3593f85356bfbaa04fa5 /modules/simpletest/tests
parenta3f4ab154828c90f4bc37ea4bf8edff8573921db (diff)
downloadbrdo-dafc861fa3b0bf474524f04b9d9d1b7bfe67d27f.tar.gz
brdo-dafc861fa3b0bf474524f04b9d9d1b7bfe67d27f.tar.bz2
Issue #952970 by clemens.tolboom, yched: Fixed Undefined index: required in field_default_form().
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/upgrade/upgrade.taxonomy.test6
1 files changed, 6 insertions, 0 deletions
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