diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php
index 019a03335d2373f2ec25c103a8b8d7e2d8ce9f2d..01ffcc13905967787ed1548966bbbe55b69b0457 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php
@@ -41,7 +41,6 @@ class StyleSerializerEntityTest extends ViewTestBase {
     'field',
     'language',
     'basic_auth',
-    'views_test_data',
   ];
 
   /**
diff --git a/core/modules/views/tests/modules/views_test_data/views_test_data.install b/core/modules/views/tests/modules/views_test_data/views_test_data.install
index aea3cd224114eb7cffdb9b3997b4e48c962c9f17..06c90bb6ab07641bc22acc774a430ec16a79f876 100644
--- a/core/modules/views/tests/modules/views_test_data/views_test_data.install
+++ b/core/modules/views/tests/modules/views_test_data/views_test_data.install
@@ -11,7 +11,7 @@
  * Implements hook_schema().
  */
 function views_test_data_schema(): array {
-  return \Drupal::state()->get('views_test_data_schema') ?? [];
+  return \Drupal::state()->get('views_test_data_schema');
 }
 
 /**