Skip to content
Snippets Groups Projects
Commit 9a801ac0 authored by Richard Gaunt's avatar Richard Gaunt Committed by Chris Eastwood
Browse files

Issue #3288621 by Project Update Bot, alex.skrypnyk, RichardGaunt: Automated...

Issue #3288621 by Project Update Bot, alex.skrypnyk, RichardGaunt: Automated Drupal 10 compatibility fixes
parent 2e7eca2f
No related branches found
No related tags found
No related merge requests found
name: Migrate Files (extended)
type: module
description: Additional support for migrating files including importing files, downloading remote files, and using remote uris (without download).
core_version_requirement: ^9
core_version_requirement: ^9 | ^10
package: Migration
dependencies:
- drupal:migrate
......@@ -269,7 +269,7 @@ class FileImport extends FileCopy {
$file = File::create([
'uri' => $final_destination,
'uid' => $uid,
'status' => FILE_STATUS_PERMANENT,
'status' => FileInterface::STATUS_PERMANENT,
]);
$file->save();
return $id_only ? $file->id() : ['target_id' => $file->id()];
......
......@@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase {
*
* @var array
*/
public static $modules = ['migrate_remote_file'];
protected static $modules = ['migrate_remote_file'];
/**
* A user with permission to administer site configuration.
......@@ -29,7 +29,7 @@ class LoadTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->user = $this->drupalCreateUser(['administer site configuration']);
$this->drupalLogin($this->user);
......@@ -40,7 +40,7 @@ class LoadTest extends BrowserTestBase {
*/
public function testLoad() {
$this->drupalGet(Url::fromRoute('<front>'));
$this->assertResponse(200);
$this->assertSession()->statusCodeEquals(200);
}
}
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