From 746ed4f6c2b8e06c644b19412ec1b22b0cfccd1d Mon Sep 17 00:00:00 2001 From: divyajose Date: Wed, 15 Nov 2023 10:09:30 +0530 Subject: [PATCH] Fix for deprecation Calling InfoParser without app_root --- tests/src/Kernel/UserAgentTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Kernel/UserAgentTest.php b/tests/src/Kernel/UserAgentTest.php index 289c051b..b58b9e7b 100644 --- a/tests/src/Kernel/UserAgentTest.php +++ b/tests/src/Kernel/UserAgentTest.php @@ -70,7 +70,7 @@ protected function setUp(): void { */ public function testUserAgentWithoutMonetization() { // apigee_edge module info. - $infoParser = new InfoParser(); + $infoParser = new InfoParser($this->root); $this->edgeModuleInfo = $infoParser->parse(\Drupal::service('module_handler')->getModule('apigee_edge')->getPathname()); if (!isset($this->edgeModuleInfo['version'])) { $this->edgeModuleInfo['version'] = '2.x-dev';