function MigrateResponsiveImageStylesTest::setUp
Same name in other branches
- 9 core/modules/responsive_image/tests/src/Kernel/Migrate/d7/MigrateResponsiveImageStylesTest.php \Drupal\Tests\responsive_image\Kernel\Migrate\d7\MigrateResponsiveImageStylesTest::setUp()
- 10 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 25
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',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.