only in patch2:
unchanged:
--- a/core/scripts/test-site.php
+++ b/core/scripts/test-site.php
@@ -12,6 +12,8 @@
   return;
 }
 
+require_once __DIR__ . '/../../autoload.php';
+
 // Use the PHPUnit bootstrap to prime an autoloader that works for test classes.
 // Note we have to disable the SYMFONY_DEPRECATIONS_HELPER to ensure deprecation
 // notices are not triggered.
only in patch2:
unchanged:
--- a/core/tests/Drupal/Tests/Core/Bootstrap/DrupalGetProfileLegacyTest.php
+++ b/core/tests/Drupal/Tests/Core/Bootstrap/DrupalGetProfileLegacyTest.php
@@ -28,7 +28,6 @@ class DrupalGetProfileLegacyTest extends UnitTestCase {
    */
   protected function setUp() {
     parent::setUp();
-    include $this->root . '/core/includes/bootstrap.inc';
   }
 
   /**
