From 30924c246f5e5ebeebb30bde4c2b46095c714439 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Tue, 3 Oct 2023 16:35:28 -0700 Subject: [PATCH] environment variable --- tests/src/Kernel/EventSubscriber/EventSubscriberTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);