Skip to content

Commit

Permalink
Fix for deprecation Calling InfoParser without app_root (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-intelli authored Nov 15, 2023
1 parent 5d35156 commit d9268cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/Kernel/UserAgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit d9268cc

Please sign in to comment.