Skip to content

Commit 58a6f99

Browse files
authored
Fixed 'Call to deprecated constant FILE_STATUS_PERMANENT' (#79, #80)
1 parent 6f0cb20 commit 58a6f99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/src/Functional/SubsiteBlocksTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Drupal\Tests\localgov_subsites\Functional;
44

55
use Drupal\file\Entity\File;
6+
use Drupal\file\FileInterface;
67
use Drupal\media\Entity\Media;
78
use Drupal\node\NodeInterface;
89
use Drupal\paragraphs\Entity\Paragraph;
@@ -91,7 +92,7 @@ public function testSubsiteBannerBlock() {
9192
$image = current($this->getTestFiles('image'));
9293
$file = File::create([
9394
'uri' => $image->uri,
94-
'status' => FILE_STATUS_PERMANENT,
95+
'status' => FileInterface::STATUS_PERMANENT,
9596
]);
9697
$file->save();
9798

0 commit comments

Comments
 (0)