Skip to content
Snippets Groups Projects
Commit 3d54707a authored by Adam Bramley's avatar Adam Bramley
Browse files

Tests

parent ea5a5406
No related branches found
Tags
No related merge requests found
Pipeline #142382 failed
......@@ -397,4 +397,12 @@ class ViewsIntegrationTest extends EntityHierarchyKernelTestBase {
$this->assertEquals(5, substr_count($output, ' is child of'));
}
/**
* Tests target_id filter uses core's entity_reference plugin.
*/
public function testEntityReferenceFilterHandler(): void {
$data = \Drupal::service('views.views_data')->getAll();
$this->assertEquals('entity_reference', $data['entity_test__parents']['parents_target_id']['filter']['id']);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment