diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermFieldTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermFieldTest.php
index 237f9db..1dd0aab 100644
--- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermFieldTest.php
+++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermFieldTest.php
@@ -17,7 +17,7 @@ class TermFieldTest extends TaxonomyTestBase {
    *
    * @var array
    */
-  public static $modules = array('entity_test');
+  public static $modules = array('entity_test', 'field_ui');
 
   protected $instance;
   protected $vocabulary;
@@ -37,6 +37,7 @@ function setUp() {
       'view test entity',
       'administer entity_test content',
       'administer taxonomy',
+      'administer entity_test fields',
     ));
     $this->drupalLogin($web_user);
     $this->vocabulary = $this->createVocabulary();
@@ -129,6 +130,20 @@ function testTaxonomyTermFieldWidgets() {
   }
 
   /**
+   * No php error message on the field setting page for autocomplete widget.
+   */
+  function testTaxonomyTermFieldInstanceSettingsAutocompleteWidget() {
+    entity_get_form_display('entity_test', 'entity_test', 'default')
+      ->setComponent($this->field_name, array(
+        'type' => 'taxonomy_autocomplete',
+        'weight' => 1,
+      ))
+      ->save();
+    $this->drupalGet('entity_test/structure/entity_test/fields/entity_test.entity_test.' . $this->field_name);
+    $this->assertNoErrorsLogged();
+  }
+
+  /**
    * Tests that vocabulary machine name changes are mirrored in field definitions.
    */
   function testTaxonomyTermFieldChangeMachineName() {
