diff --git a/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php b/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php index c9e3cf5ba..e2c35a0cf 100644 --- a/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php +++ b/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php @@ -136,6 +136,9 @@ public function testUserInsert() { } public function testKernelRequest() { + $ci = getenv('CI'); + putenv('CI'); + $config_page_loader = $this->createMock(ConfigPagesLoaderServiceInterface::class); \Drupal::getContainer()->set('config_pages.loader', $config_page_loader); @@ -145,8 +148,6 @@ public function testKernelRequest() { $account->method('getRoles')->willReturn([]); \Drupal::currentUser()->setAccount($account); - - $ci = getenv('CI'); $request = Request::create('/foo/bar', 'GET', [], [], [], ['SCRIPT_NAME' => 'index.php']); $http_kernel = $this->createMock(HttpKernelInterface::class);