Skip to content
Snippets Groups Projects
Commit e6d54a33 authored by AKHIL BABU's avatar AKHIL BABU Committed by Liam Morland
Browse files

Issue #3297233 by Akhil Babu: Remove deprecated file_create_url()

parent ce8a6d29
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ class HandlePdfControllerTest extends FillPdfUploadTestBase { ...@@ -207,7 +207,7 @@ class HandlePdfControllerTest extends FillPdfUploadTestBase {
// Check if file is permanent and has the right format. // Check if file is permanent and has the right format.
$this->assertFileIsPermanent($file); $this->assertFileIsPermanent($file);
$this->drupalGet(file_create_url($uri)); $this->drupalGet(\Drupal::service('file_url_generator')->generateAbsoluteString($uri));
$maybe_pdf = $this->getSession()->getPage()->getContent(); $maybe_pdf = $this->getSession()->getPage()->getContent();
static::assertEquals('application/pdf', $this->getMimeType($maybe_pdf), "Test case $id: The file has the correct MIME type."); static::assertEquals('application/pdf', $this->getMimeType($maybe_pdf), "Test case $id: The file has the correct MIME type.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment