diff --git a/core/modules/entity_reference/src/Tests/Views/EntityReferenceRelationshipTest.php b/core/modules/entity_reference/src/Tests/Views/EntityReferenceRelationshipTest.php
index 9ae79a7..e8c1c5a 100644
--- a/core/modules/entity_reference/src/Tests/Views/EntityReferenceRelationshipTest.php
+++ b/core/modules/entity_reference/src/Tests/Views/EntityReferenceRelationshipTest.php
@@ -120,6 +120,7 @@ public function testRelationship() {
     // Check an actual test view.
     $view = Views::getView('test_entity_reference_view');
     $this->executeView($view);
+    $this->assertEqual(count($view->result), 3);
 
     foreach (array_keys($view->result) as $index) {
       // Check that the actual ID of the entity is the expected one.
diff --git a/core/modules/entity_reference/tests/modules/entity_reference_test_views/test_views/views.view.test_entity_reference_view.yml b/core/modules/entity_reference/tests/modules/entity_reference_test_views/test_views/views.view.test_entity_reference_view.yml
index 8b92cb6..463e7ea 100644
--- a/core/modules/entity_reference/tests/modules/entity_reference_test_views/test_views/views.view.test_entity_reference_view.yml
+++ b/core/modules/entity_reference/tests/modules/entity_reference_test_views/test_views/views.view.test_entity_reference_view.yml
@@ -34,6 +34,20 @@ display:
           plugin_id: numeric
           entity_type: entity_test
           entity_field: id
+      filters:
+        id:
+          field: id
+          relationship: test_relationship
+          id: id
+          table: entity_test
+          plugin_id: numeric
+          entity_type: entity_test
+          entity_field: id
+          operator: '!='
+          value:
+            min: ''
+            max: ''
+            value: '144'
       pager:
         options:
           offset: 0
@@ -55,6 +69,7 @@ display:
           field: field_test
           relationship: none
           plugin_id: standard
+          required: false
       field_langcode: '***LANGUAGE_language_content***'
       field_langcode_add_to_query: null
     display_plugin: default
@@ -77,4 +92,4 @@ display:
     display_plugin: embed
     display_title: Embed
     id: embed_1
-    position: null
+    position: null
\ No newline at end of file
