diff --git a/tests/src/Functional/FillPdfUploadTestBase.php b/tests/src/Functional/FillPdfUploadTestBase.php index 5873b4b102c9d15654e91e545fa7fc99b3330cfa..eebf17a77e7db653ed35fafe81e1795670f4785d 100644 --- a/tests/src/Functional/FillPdfUploadTestBase.php +++ b/tests/src/Functional/FillPdfUploadTestBase.php @@ -130,7 +130,7 @@ abstract class FillPdfUploadTestBase extends FillPdfTestBase { // Now remove the PDF file again. The temporary file should now be // removed both from the disk and the database. $this->drupalPostForm(NULL, NULL, self::OP_REMOVE); - $this->assertFileNotExists($new_file->getFileUri()); + $this->assertFileDoesNotExist($new_file->getFileUri()); // @todo Simplify once Core bug gets fixed. // @see https://www.drupal.org/project/drupal/issues/3043127 $this->assertFileEntryNotExists($new_file, NULL);