Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / datetime_range / tests / modules / datetime_range_test / datetime_range_test.module
diff --git a/web/core/modules/datetime_range/tests/modules/datetime_range_test/datetime_range_test.module b/web/core/modules/datetime_range/tests/modules/datetime_range_test/datetime_range_test.module
new file mode 100644 (file)
index 0000000..4f15a91
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * @file
+ * Contains datetime_range_test.module
+ */
+
+/**
+ * Implements hook_entity_type_alter().
+ */
+function datetime_range_test_entity_type_alter(array &$entity_types) {
+  // Inhibit views data for the 'taxonomy_term' entity type in order to cover
+  // the case when an entity type provides no views data.
+  // @see https://www.drupal.org/project/drupal/issues/2995578
+  // @see \Drupal\Tests\datetime_range\Kernel\Views\EntityTypeWithoutViewsDataTest
+  $entity_types['taxonomy_term']->setHandlerClass('views_data', NULL);
+}