You are here

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

Same name in this branch
  1. 3.0.x modules/ubercart/tests/src/Functional/uc6/MigrateUpgradeAddToCartTest.php \Drupal\Tests\commerce_migrate_ubercart\Functional\uc6\MigrateUpgradeAddToCartTest::setUp()
  2. 3.0.x modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeAddToCartTest.php \Drupal\Tests\commerce_migrate_commerce\Functional\commerce1\MigrateUpgradeAddToCartTest::setUp()
Same name and namespace in other branches
  1. 8.2 modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeAddToCartTest.php \Drupal\Tests\commerce_migrate_commerce\Functional\commerce1\MigrateUpgradeAddToCartTest::setUp()
  2. 3.1.x modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeAddToCartTest.php \Drupal\Tests\commerce_migrate_commerce\Functional\commerce1\MigrateUpgradeAddToCartTest::setUp()

Overrides MigrateUpgradeTestBase::setUp

File

modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeAddToCartTest.php, line 74

Class

MigrateUpgradeAddToCartTest
Tests adding a product to the cart after a full migration.

Namespace

Drupal\Tests\commerce_migrate_commerce\Functional\commerce1

Code

protected function setUp() {
  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');
}