From 2c1c25a40d906b2d751aa2484eed0c5d45b50eac Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 2 Apr 2019 16:01:26 +0100 Subject: [PATCH] Issue #3038825 by undertext, Mile23: Remove unused code from KernelTestBase --- core/tests/Drupal/KernelTests/KernelTestBase.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index acf85fd5905b..ffee50a70d75 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -331,17 +331,6 @@ private function bootKernel() { $modules = self::getModulesToEnable(get_class($this)); - // Prepare a precompiled container for all tests of this class. - // Substantially improves performance, since ContainerBuilder::compile() - // is very expensive. Encourages testing best practices (small tests). - // Normally a setUpBeforeClass() operation, but object scope is required to - // inject $this test class instance as a service provider (see above). - $rc = new \ReflectionClass(get_class($this)); - $test_method_count = count(array_filter($rc->getMethods(), function ($method) { - // PHPUnit's @test annotations are intentionally ignored/not supported. - return strpos($method->getName(), 'test') === 0; - })); - // Bootstrap the kernel. Do not use createFromRequest() to retain Settings. $kernel = new DrupalKernel('testing', $this->classLoader, FALSE); $kernel->setSitePath($this->siteDirectory); -- GitLab