You are here

protected function ImageTest::setUp in Commerce Migrate 3.0.x

Same name in this branch
  1. 3.0.x modules/csv_example/tests/src/Kernel/Migrate/ImageTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\ImageTest::setUp()
  2. 3.0.x modules/magento/tests/src/Kernel/Migrate/magento2/ImageTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ImageTest::setUp()
Same name and namespace in other branches
  1. 8.2 modules/magento/tests/src/Kernel/Migrate/magento2/ImageTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ImageTest::setUp()
  2. 3.1.x modules/magento/tests/src/Kernel/Migrate/magento2/ImageTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ImageTest::setUp()

Overrides CsvTestBase::setUp

File

modules/magento/tests/src/Kernel/Migrate/magento2/ImageTest.php, line 42

Class

ImageTest
Migrate images.

Namespace

Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2

Code

protected function setUp() {
  parent::setUp();
  $this->fs = \Drupal::service('file_system');
  $this
    ->installEntitySchema('user');

  // Copy the source files.
  $this
    ->fileMigrationSetup(__DIR__ . '/../../../../fixtures/images');
  $this
    ->executeMigration('magento2_image');
}