diff --git a/core/modules/views/tests/modules/views_test_config/views_test_config.install b/core/modules/views/tests/modules/views_test_config/views_test_config.install
new file mode 100644
index 0000000..67391f6
--- /dev/null
+++ b/core/modules/views/tests/modules/views_test_config/views_test_config.install
@@ -0,0 +1,37 @@
+<?php
+/**
+ * @file
+ * Allows developers to enable the views used during automated testing. To use
+ * this file, rename it to views_test_config.install and enable the
+ * views_test_config module.
+ */
+
+/**
+ * Implements hook_install.
+ */
+function views_test_config_install() {
+  // Essentially a copy/paste of ViewTestBase::enableViewsTestModule, with some
+  // modifications for protected functions.
+
+  // Define the schema and views data variable before installing data module.
+  \Drupal::state()->set('views_test_data_schema', \Drupal\views\Tests\ViewTestData::schemaDefinition());
+  \Drupal::state()->set('views_test_data_views_data', \Drupal\views\Tests\ViewTestData::viewsData());
+
+  \Drupal::service('module_installer')->install(array('views_test_data'));
+  \Drupal::service('module_handler')->reload();
+
+  // Load the test dataset.
+  $data_set = \Drupal\views\Tests\ViewTestData::dataSet();
+  $query = db_insert('views_test_data')
+    ->fields(array_keys($data_set[0]));
+  foreach ($data_set as $record) {
+    $query->values($record);
+  }
+  $query->execute();
+}
+
+function views_test_config_uninstall() {
+  \Drupal::state()->delete('views_test_data_schema');
+  \Drupal::state()->delete('views_test_data_views_data');
+  \Drupal::service('module_installer')->uninstall(array('views_test_data'));
+}
