Skip to content

Commit

Permalink
environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Oct 9, 2023
1 parent 8a8a3c7 commit 30924c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/Kernel/EventSubscriber/EventSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 30924c2

Please sign in to comment.