Commit 6c61f941 authored by Daniel Pineda's avatar Daniel Pineda Committed by Adam G-H
Browse files

Issue #3287992 by phenaproxima, Project Update Bot, attilatilman, dpineda,...

Issue #3287992 by phenaproxima, Project Update Bot, attilatilman, dpineda, nkoporec, pradeepjha, Panchuk: Automated Drupal 10 compatibility fixes
parent a8c950c9
Loading
Loading
Loading
Loading
+6 −6
Changes for composer.json: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  "type": "drupal-module",
  "homepage": "https://www.drupal.org/project/image_widget_crop",
  "keywords": ["Drupal", "Drupal Media", "Crop"],
  "license": "GPL-2.0+",
  "license": "GPL-2.0-or-later",
  "minimum-stability": "dev",
  "prefer-stable": true,
  "support": {
@@ -26,12 +26,12 @@
    }
  ],
  "require": {
    "drupal/crop": "^1.0 || ^2.0"
    "drupal/crop": "^1 || ^2"
  },
  "require-dev": {
    "drupal/entity_browser": "1.x-dev",
    "drupal/ctools": "3.x-dev",
    "drupal/file_entity": "2.x-dev",
    "drupal/inline_entity_form": "^1.0"
    "drupal/bartik": "^1",
    "drupal/ctools": "^3",
    "drupal/entity_browser": "^2",
    "drupal/inline_entity_form": "^1"
  }
}
+1 −1
Changes for image_widget_crop.info.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ name: ImageWidgetCrop
type: module
description: Provides an interface for using the features of the Crop API.
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
package: Media
configure: image_widget_crop.crop_widget_settings
dependencies:
+1 −1
Changes for modules/image_widget_crop_examples/image_widget_crop_examples.info.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ name: ImageWidgetCrop examples
type: module
description: Provides an out of box example implementation of ImageWidgetCrop.
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
package: Examples
dependencies:
  - drupal:node
+2 −2
Changes for modules/image_widget_crop_examples/tests/src/Functional/ImageWidgetCropExamplesTest.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class ImageWidgetCropExamplesTest extends BrowserTestBase {
   *
   * @var array
   */
  public static $modules = [
  protected static $modules = [
    'menu_ui',
    'path',
    'media',
@@ -32,7 +32,7 @@ class ImageWidgetCropExamplesTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  public function setUp() {
  public function setUp(): void {
    parent::setUp();
    // Theme needs to be set before enabling image_widget_crop_examples because
    // of dependency.
+3 −1
Changes for tests/src/FunctionalJavascript/ImageWidgetCropTest.php: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -31,8 +31,8 @@ class ImageWidgetCropTest extends WebDriverTestBase {
   * {@inheritdoc}
   */
  protected static $modules = [
    'image_widget_crop',
    'node',
    'image_widget_crop',
  ];

  /**
@@ -95,6 +95,7 @@ class ImageWidgetCropTest extends WebDriverTestBase {
    $assert_session = $this->assertSession();

    $this->drupalGet('node/add/crop_test');

    $page->fillField('Title', $this->randomString());
    $page->attachFileToField('files[field_image_crop_test_0]', $this->container->get('file_system')->realpath(reset($images)->uri));
    $this->assertNotEmpty($assert_session->waitForField('Alternative text'));
@@ -151,6 +152,7 @@ class ImageWidgetCropTest extends WebDriverTestBase {
    $page->fillField('Title', $title);
    $page->fillField('Alternative text', $this->randomString());
    $page->pressButton('Save');

    $assert_session->pageTextContains('Crop test ' . $title . ' has been created.');
    $url = $this->getUrl();
    $nid = substr($url, -1, strrpos($url, '/'));
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.