protected function MigrateResponsiveImageStylesTest::setUp in Drupal 10
Same name and namespace in other branches
- 9 core/modules/responsive_image/tests/src/Kernel/Migrate/d7/MigrateResponsiveImageStylesTest.php \Drupal\Tests\responsive_image\Kernel\Migrate\d7\MigrateResponsiveImageStylesTest::setUp()
Overrides MigrateDrupal7TestBase::setUp
File
- core/
modules/ responsive_image/ tests/ src/ Kernel/ Migrate/ d7/ MigrateResponsiveImageStylesTest.php, line 23
Class
- MigrateResponsiveImageStylesTest
- Tests migration of responsive image styles.
Namespace
Drupal\Tests\responsive_image\Kernel\Migrate\d7Code
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',
]);
}