Browse Source

Stop using deprecated FILE_STATUS_PERMANENT.

pull/957/head
Rosie Le Faive 1 year ago
parent
commit
58ab9a3b70
  1. 2
      tests/src/Functional/DeleteNodeWithMediaAndFile.php
  2. 2
      tests/src/Functional/IslandoraFunctionalTestBase.php
  3. 2
      tests/src/Functional/IslandoraImageFormatterTest.php
  4. 2
      tests/src/Functional/JsonldTypeAlterReactionTest.php
  5. 2
      tests/src/Functional/MediaSourceUpdateTest.php

2
tests/src/Functional/DeleteNodeWithMediaAndFile.php

@ -42,8 +42,8 @@ class DeleteNodeWithMediaAndFile extends IslandoraFunctionalTestBase {
'uri' => "public://test.jpeg",
'filename' => "test.jpeg",
'filemime' => "image/jpeg",
'status' => FILE_STATUS_PERMANENT,
]);
$file->setPermanent();
$file->save();
$this->drupalGet("node/1/delete");

2
tests/src/Functional/IslandoraFunctionalTestBase.php

@ -438,8 +438,8 @@ EOD;
'uri' => "public://test_file.txt",
'filename' => "test_file.txt",
'filemime' => "text/plain",
'status' => FILE_STATUS_PERMANENT,
]);
$file->setPermanent();
$file->save();
// Get the source field for the media.

2
tests/src/Functional/IslandoraImageFormatterTest.php

@ -59,8 +59,8 @@ class IslandoraImageFormatterTest extends IslandoraFunctionalTestBase {
'uri' => "public://test.jpeg",
'filename' => "test.jpeg",
'filemime' => "image/jpeg",
'status' => FILE_STATUS_PERMANENT,
]);
$file->setPermanent();
$file->save();
// Make the media, and associate it with the image and node.

2
tests/src/Functional/JsonldTypeAlterReactionTest.php

@ -30,7 +30,7 @@ class JsonldTypeAlterReactionTest extends JsonldSelfReferenceReactionTest {
'new_storage_type' => 'string',
'label' => 'Typed Predicate',
'field_name' => 'type_predicate',
], $this->t('Save and continue'));
], 'Save and continue');
$this->submitForm([], $this->t('Save field settings'));
$this->submitForm([], $this->t('Save settings'));
$this->assertSession()->responseContains('field_type_predicate');

2
tests/src/Functional/MediaSourceUpdateTest.php

@ -52,8 +52,8 @@ class MediaSourceUpdateTest extends IslandoraFunctionalTestBase {
'uri' => "public://test_file.txt",
'filename' => "test_file.txt",
'filemime' => "text/plain",
'status' => FILE_STATUS_PERMANENT,
]);
$this->file->setPermanent();
$this->file->save();
// Get the source field for the media.

Loading…
Cancel
Save