Issue #3250582 by huzooka, Matroskeen, danflanagan8, ravi.shankar, quietone, erik.erskine: ResponsiveImageStyles source plugin must extend DrupalSqlBase

merge-requests/2292/head
Alex Pott 2022-05-17 00:13:55 +01:00
parent 9ca2366c1f
commit d5cb46bb07
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
3 changed files with 11 additions and 3 deletions

View File

@ -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 @@ use Drupal\migrate\Row;
* source_module = "picture"
* )
*/
class ResponsiveImageStyles extends SqlBase {
class ResponsiveImageStyles extends DrupalSqlBase {
/**
* {@inheritdoc}

View File

@ -22,6 +22,11 @@ class MigrateResponsiveImageStylesTest extends MigrateDrupal7TestBase {
*/
public 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']);
}

View File

@ -15,7 +15,10 @@ class ResponsiveImageStylesTest extends MigrateSqlSourceTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = ['responsive_image'];
protected static $modules = [
'migrate_drupal',
'responsive_image',
];
/**
* {@inheritdoc}