You are here

public function TaxonomyCategoriesTermTest::testTaxonomyTerm in Commerce Migrate 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/woocommerce/tests/src/Kernel/Migrate/woo3/TaxonomyCategoriesTermTest.php \Drupal\Tests\commerce_migrate_woocommerce\Kernel\Migrate\woo3\TaxonomyCategoriesTermTest::testTaxonomyTerm()
  2. 3.1.x modules/woocommerce/tests/src/Kernel/Migrate/woo3/TaxonomyCategoriesTermTest.php \Drupal\Tests\commerce_migrate_woocommerce\Kernel\Migrate\woo3\TaxonomyCategoriesTermTest::testTaxonomyTerm()

Tests the WooCommerce taxonomy term to Drupal 8 migration.

File

modules/woocommerce/tests/src/Kernel/Migrate/woo3/TaxonomyCategoriesTermTest.php, line 47

Class

TaxonomyCategoriesTermTest
Tests migrations of categories taxonomy terms.

Namespace

Drupal\Tests\commerce_migrate_woocommerce\Kernel\Migrate\woo3

Code

public function testTaxonomyTerm() {
  $this
    ->assertTermEntity(1, 'Clothing', 'categories', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(2, 'T-shirts', 'categories', '', NULL, 0, [
    1,
  ]);
  $this
    ->assertTermEntity(3, 'Hoodies', 'categories', '', NULL, 0, [
    1,
  ]);
  $this
    ->assertTermEntity(4, 'Pocket', 'categories', '', NULL, 0, [
    3,
  ]);
  $this
    ->assertTermEntity(5, 'Zip', 'categories', '', NULL, 0, [
    3,
  ]);
  $this
    ->assertTermEntity(6, 'Posters', 'categories', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(7, 'Music', 'categories', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(8, 'Albums', 'categories', '', NULL, 0, [
    7,
  ]);
  $this
    ->assertTermEntity(9, 'Singles', 'categories', '', NULL, 0, [
    7,
  ]);
}