Issue #3250582 by huzooka, Matroskeen, danflanagan8, ravi.shankar, quietone, erik.erskine: ResponsiveImageStyles source plugin must extend DrupalSqlBase
parent
9ca2366c1f
commit
d5cb46bb07
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace Drupal\responsive_image\Plugin\migrate\source\d7;
|
namespace Drupal\responsive_image\Plugin\migrate\source\d7;
|
||||||
|
|
||||||
use Drupal\migrate\Plugin\migrate\source\SqlBase;
|
|
||||||
use Drupal\migrate\Row;
|
use Drupal\migrate\Row;
|
||||||
|
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets Drupal responsive image styles source from database.
|
* Gets Drupal responsive image styles source from database.
|
||||||
|
@ -20,7 +20,7 @@ use Drupal\migrate\Row;
|
||||||
* source_module = "picture"
|
* source_module = "picture"
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
class ResponsiveImageStyles extends SqlBase {
|
class ResponsiveImageStyles extends DrupalSqlBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
|
@ -22,6 +22,11 @@ class MigrateResponsiveImageStylesTest extends MigrateDrupal7TestBase {
|
||||||
*/
|
*/
|
||||||
public function setUp(): void {
|
public function setUp(): void {
|
||||||
parent::setUp();
|
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']);
|
$this->executeMigrations(['d7_image_styles', 'd7_responsive_image_styles']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,10 @@ class ResponsiveImageStylesTest extends MigrateSqlSourceTestBase {
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected static $modules = ['responsive_image'];
|
protected static $modules = [
|
||||||
|
'migrate_drupal',
|
||||||
|
'responsive_image',
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
Loading…
Reference in New Issue