From e6d54a3344d7f0e099dbf75ceabb5b25ac7b9a52 Mon Sep 17 00:00:00 2001
From: AKHIL BABU <61542-AkhilBabu@users.noreply.drupalcode.org>
Date: Wed, 14 Dec 2022 09:27:35 -0500
Subject: [PATCH] Issue #3297233 by Akhil Babu: Remove deprecated
 file_create_url()

---
 tests/src/Functional/HandlePdfControllerTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/src/Functional/HandlePdfControllerTest.php b/tests/src/Functional/HandlePdfControllerTest.php
index 43897f3..e18c0e8 100644
--- a/tests/src/Functional/HandlePdfControllerTest.php
+++ b/tests/src/Functional/HandlePdfControllerTest.php
@@ -207,7 +207,7 @@ class HandlePdfControllerTest extends FillPdfUploadTestBase {
 
       // Check if file is permanent and has the right format.
       $this->assertFileIsPermanent($file);
-      $this->drupalGet(file_create_url($uri));
+      $this->drupalGet(\Drupal::service('file_url_generator')->generateAbsoluteString($uri));
       $maybe_pdf = $this->getSession()->getPage()->getContent();
       static::assertEquals('application/pdf', $this->getMimeType($maybe_pdf), "Test case $id: The file has the correct MIME type.");
 
-- 
GitLab