Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/modules/simpletest/tests/upgrade/upgrade.taxonomy.test
74 74
    $this->assertEqual($voc_keys, $inst_keys, 'Node type page has instances for every vocabulary.');
75 75

  
76 76
    // Ensure instance variables are getting through.
77
    foreach ($instances as $instance) {
78
      $this->assertTrue(isset($instance['required']), 'The required setting was preserved during the upgrade path.');
79
      $this->assertTrue($instance['description'], 'The description was preserved during the upgrade path');
77
    foreach (array_unique($instances) as $instance) {
78
      $field_instance = field_info_instance('node', $instance, 'page');
79
      $this->assertTrue(isset($field_instance['required']), 'The required setting was preserved during the upgrade path.');
80
      $this->assertTrue($field_instance['description'], 'The description was preserved during the upgrade path');
80 81
    }
81 82

  
82 83
    // Node type 'story' was not explicitly in $vocabulary->nodes but

Also available in: Unified diff