diff --git a/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php b/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php
index 454c8ed..e1a8c04 100644
--- a/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php
+++ b/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php
@@ -25,11 +25,11 @@ class EntityReferenceAdminTest extends WebTestBase {
    *
    * Enable path module to ensure that the selection handler does not fail for
    * entities with a path field.
+   * Enable views_ui module to see the no_view_help text.
    *
    * @var array
    */
-  public static $modules = array('node', 'field_ui', 'entity_reference', 'path', 'taxonomy', 'block', 'views');
-
+  public static $modules = array('node', 'field_ui', 'entity_reference', 'path', 'taxonomy', 'block', 'views', 'views_ui');
 
   /**
    * The name of the content type created for testing purposes.
@@ -46,7 +46,7 @@ protected function setUp() {
     $this->drupalPlaceBlock('system_breadcrumb_block');
 
     // Create test user.
-    $admin_user = $this->drupalCreateUser(array('access content', 'administer node fields', 'administer node display'));
+    $admin_user = $this->drupalCreateUser(array('access content', 'administer node fields', 'administer node display', 'administer views'));
     $this->drupalLogin($admin_user);
 
     // Create a content type, with underscores.
@@ -154,11 +154,12 @@ public function testFieldAdminHandler() {
       'settings[handler]' => 'views',
     );
     $this->drupalPostAjaxForm($bundle_path . '/fields/' . $field_name, $edit, 'settings[handler]');
-    $this->drupalPostForm(NULL, $edit, t('Save settings'));
+    $this->assertRaw('No eligible views were found. <a href="/admin/structure/views/add">Create a view</a> with an <em>Entity Reference</em> display, or add such a display to an <a href="/admin/structure/views">existing view</a>.');    $this->drupalPostForm(NULL, $edit, t('Save settings'));
     $this->assertResponse(200);
+    // If no view is available we should see a message.
+    $this->assertText('The views entity selection mode requires a view.');
   }
 
-
   /**
    * Tests the formatters for the Entity References
    */
