You are here

protected function MigrateUpgradeCommerce1Test::setUp in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeCommerce1Test.php \Drupal\Tests\commerce_migrate_commerce\Functional\commerce1\MigrateUpgradeCommerce1Test::setUp()
  2. 3.0.x modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeCommerce1Test.php \Drupal\Tests\commerce_migrate_commerce\Functional\commerce1\MigrateUpgradeCommerce1Test::setUp()

Overrides MigrateUpgradeTestBase::setUp

File

modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeCommerce1Test.php, line 78

Class

MigrateUpgradeCommerce1Test
Tests Commerce 1 upgrade using the migrate UI.

Namespace

Drupal\Tests\commerce_migrate_commerce\Functional\commerce1

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->writeSettings([
    'settings' => [
      'migrate_node_migrate_type_classic' => (object) [
        'value' => TRUE,
        'required' => TRUE,
      ],
    ],
  ]);
  $this
    ->loadFixture(drupal_get_path('module', 'commerce_migrate_commerce') . '/tests/fixtures/ck2.php');
}