diff --git a/core/modules/system/tests/modules/update_test_schema/update_test_schema.install b/core/modules/system/tests/modules/update_test_schema/update_test_schema.install
index 972f901761..ead20a2307 100644
--- a/core/modules/system/tests/modules/update_test_schema/update_test_schema.install
+++ b/core/modules/system/tests/modules/update_test_schema/update_test_schema.install
@@ -46,3 +46,54 @@ function update_test_schema_update_8001() {
     db_add_index('update_test_schema_table', 'test', ['a'], $table);
   }
 }
+
+if ($schema_version >= 810001) {
+
+  /**
+   * Schema version 8002.
+   */
+  function update_test_schema_update_8002() {
+    $log = \Drupal::state()->get('update_test_schema_high_schema', []);
+    $log[] = __FUNCTION__;
+    \Drupal::state()->set('update_test_schema_high_schema', $log);
+  }
+
+  /**
+   * Schema version 8301.
+   */
+  function update_test_schema_update_8301() {
+    $log = \Drupal::state()->get('update_test_schema_high_schema', []);
+    $log[] = __FUNCTION__;
+    \Drupal::state()->set('update_test_schema_high_schema', $log);
+  }
+
+  /**
+   * Schema version 810001.
+   */
+  function update_test_schema_update_810001() {
+    $log = \Drupal::state()->get('update_test_schema_high_schema', []);
+    $log[] = __FUNCTION__;
+    \Drupal::state()->set('update_test_schema_high_schema', $log);
+  }
+}
+
+if ($schema_version >= 810002) {
+
+  /**
+   * Schema version 8302.
+   */
+  function update_test_schema_update_8302() {
+    $log = \Drupal::state()->get('update_test_schema_high_schema', []);
+    $log[] = __FUNCTION__;
+    \Drupal::state()->set('update_test_schema_high_schema', $log);
+  }
+
+  /**
+   * Schema version 810002.
+   */
+  function update_test_schema_update_810002() {
+    $log = \Drupal::state()->get('update_test_schema_high_schema', []);
+    $log[] = __FUNCTION__;
+    \Drupal::state()->set('update_test_schema_high_schema', $log);
+  }
+}
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
index a375db7e8c..d8163da689 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
@@ -94,4 +94,31 @@ public function testUpdateHookN() {
     $this->assertTrue(db_index_exists('update_test_schema_table', 'test'), 'Version 8001 of the update_test_schema module is installed.');
   }
 
+  /**
+   * Test that high updates are still executed.
+   */
+  public function testUpdateHighHookN() {
+    // Increment the schema version.
+    \Drupal::state()->set('update_test_schema_version', 810001);
+    $this->runUpdates();
+
+    // Ensure schema has changed.
+    $this->assertEquals(810001, drupal_get_installed_schema_version('update_test_schema', TRUE));
+    // Ensure all previous functions got executed as well.
+    $this->assertEquals(['update_test_schema_update_8002', 'update_test_schema_update_8301', 'update_test_schema_update_810001'], \Drupal::state()->get('update_test_schema_high_schema'));
+
+    \Drupal::state()->set('update_test_schema_version', 810002);
+
+    $this->runUpdates();
+
+    // Ensure schema has changed.
+    $this->assertEquals(810002, drupal_get_installed_schema_version('update_test_schema', TRUE));
+    // Ensure that 810002 was executed but 8302 was not since we were already
+    // past that number.
+    $this->assertEquals(['update_test_schema_update_8002', 'update_test_schema_update_8301', 'update_test_schema_update_810001', 'update_test_schema_update_810002'], \Drupal::state()->get('update_test_schema_high_schema'));
+
+
+
+  }
+
 }
