Mercurial > hg > isophonics-drupal-site
diff core/modules/image/tests/src/Functional/FileMoveTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | c2387f117808 |
children |
line wrap: on
line diff
--- a/core/modules/image/tests/src/Functional/FileMoveTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/image/tests/src/Functional/FileMoveTest.php Thu May 09 15:33:08 2019 +0100 @@ -2,6 +2,7 @@ namespace Drupal\Tests\image\Functional; +use Drupal\Core\File\FileSystemInterface; use Drupal\file\Entity\File; use Drupal\image\Entity\ImageStyle; use Drupal\Tests\BrowserTestBase; @@ -46,7 +47,7 @@ // Clone the object so we don't have to worry about the function changing // our reference copy. $desired_filepath = 'public://' . $this->randomMachineName(); - $result = file_move(clone $file, $desired_filepath, FILE_EXISTS_ERROR); + $result = file_move(clone $file, $desired_filepath, FileSystemInterface::EXISTS_ERROR); // Check if image has been moved. $this->assertTrue(file_exists($result->getFileUri()), 'Make sure image is moved successfully.');