Commit d0ceb01b authored by git's avatar git Committed by Qiangjun Ran
Browse files

Issue #3288486 by Project Update Bot, jungle: Automated Drupal 10 compatibility fixes

parent 1fcb6a89
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
name: Media Download All
type: module
description: This module will provide field formatter and block plugin for downloading all media files associated with an entity.
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
package: Media
dependencies:
  - drupal:media
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ class Zip extends BaseZip {
    $file_name = $fid . ' - ' . $file->label();
    $uri = $file->getFileUri();
    if ($this->isAliyunOssSchema($uri)) {
      $url = file_create_url($uri);
      $url = \Drupal::service('file_url_generator')->generateAbsoluteString($uri);
      $this->zip->addFromString($file_name, file_get_contents($url));
      return $this;
    }
+2 −2
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ class MdaFormatterTest extends BrowserTestBase {
    $entity_id = $entity->id();

    $this->drupalGet($entity->toUrl());
    $this->assertResponse(200);
    $this->assertSession()->statusCodeEquals(200);
    $link = $this->xpath("//a[@class='media-download-all']");
    $this->assertCount(1, $link);
    $mda_link = $link[0];
@@ -192,7 +192,7 @@ class MdaFormatterTest extends BrowserTestBase {
    ]);
    $entity->save();
    $this->drupalGet($entity->toUrl());
    $this->assertResponse(200);
    $this->assertSession()->statusCodeEquals(200);
    $link = $this->xpath("//a[@class='media-download-all']");
    $this->assertCount(0, $link);
  }