You are here

public function TaxonomyTermTest::testTaxonomyTerm in Commerce Migrate 3.1.x

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

Tests the shopify taxonomy term to Drupal 8 migration.

File

modules/shopify/tests/src/Kernel/Migrate/TaxonomyTermTest.php, line 53

Class

TaxonomyTermTest
Tests migration of tag terms.

Namespace

Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate

Code

public function testTaxonomyTerm() {
  $this
    ->assertTermEntity(1, '1 Size', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(2, 'Accessory', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(3, 'Bag', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(4, 'Multi', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(5, 'sure', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(6, 'suredesign', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(7, 'suretshirts', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(8, 'Thai Hmong Embroidered Bag', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(9, 'Embroidered Ohm | Ganesha Print', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(10, 'Green', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(11, 'Yellow', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(12, 'closeout', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(13, 'sales', 'tags', '', NULL, 0, [
    0,
  ]);
}