reverted: --- b/core/modules/views/src/Tests/FieldApiDataTest.php +++ a/core/modules/views/src/Tests/FieldApiDataTest.php @@ -7,7 +7,6 @@ namespace Drupal\views\Tests; -use Drupal\field\Entity\FieldConfig; use Drupal\field\Tests\Views\FieldTestBase; /** @@ -27,20 +26,9 @@ 'field_name' => $field_names[0], 'entity_type' => 'node', 'bundle' => 'page', - 'label' => 'The giraffe" label' ); entity_create('field_config', $field)->save(); - // Attach the same field to a different bundle with a different label. - $this->drupalCreateContentType(['type' => 'article']); - $field = FieldConfig::create([ - 'field_name' => $field_names[0], - 'entity_type' => 'node', - 'bundle' => 'article', - 'label' => 'The giraffe2" label' - ]); - $field->save(); - // Now create some example nodes/users for the view result. for ($i = 0; $i < 5; $i++) { $edit = array( @@ -98,9 +86,6 @@ $this->assertTrue($data[$current_table][$field_storage->getName()]['field']['click sortable'], 'String field is click sortable.'); // Click sort should only be on the primary field. $this->assertTrue(empty($data[$revision_table][$field_storage->getName()]['field']['click sortable']), 'Non-primary fields are not click sortable'); - - $help = \Drupal::service('renderer')->renderPlain($data[$current_table][$field_storage->getName()]['help']); - $this->assertEqual(1, preg_match('/Appears in: .*page.*article.*\. Also known as: .*Content: The giraffe2" label.*\./', $help), 'Help text has the expected format'); } }