Verified Commit 1e984560 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3250582 by huzooka, Matroskeen, danflanagan8, ravi.shankar, quietone,...

Issue #3250582 by huzooka, Matroskeen, danflanagan8, ravi.shankar, quietone, erik.erskine: ResponsiveImageStyles source plugin must extend DrupalSqlBase
parent 888e20d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@

namespace Drupal\responsive_image\Plugin\migrate\source\d7;

use Drupal\migrate\Plugin\migrate\source\SqlBase;
use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;

/**
 * Gets Drupal responsive image styles source from database.
@@ -20,7 +20,7 @@
 *   source_module = "picture"
 * )
 */
class ResponsiveImageStyles extends SqlBase {
class ResponsiveImageStyles extends DrupalSqlBase {

  /**
   * {@inheritdoc}
+5 −0
Original line number Diff line number Diff line
@@ -22,6 +22,11 @@ class MigrateResponsiveImageStylesTest extends MigrateDrupal7TestBase {
   */
  protected function setUp(): void {
    parent::setUp();
    // Ensure the 'picture' module is enabled in the source.
    $this->sourceDatabase->update('system')
      ->condition('name', 'picture')
      ->fields(['status' => 1])
      ->execute();
    $this->executeMigrations(['d7_image_styles', 'd7_responsive_image_styles']);
  }

+4 −1
Original line number Diff line number Diff line
@@ -15,7 +15,10 @@ class ResponsiveImageStylesTest extends MigrateSqlSourceTestBase {
  /**
   * {@inheritdoc}
   */
  protected static $modules = ['responsive_image'];
  protected static $modules = [
    'migrate_drupal',
    'responsive_image',
  ];

  /**
   * {@inheritdoc}