You are here

public function TaxonomyTagTermTest::testTaxonomyTerm in Commerce Migrate 8.2

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

Tests the WooCommerce taxonomy term to Drupal 8 migration.

File

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

Class

TaxonomyTagTermTest
Tests migration of tag terms.

Namespace

Drupal\Tests\commerce_migrate_woocommerce\Kernel\Migrate\woo3

Code

public function testTaxonomyTerm() {
  $this
    ->assertTermEntity(1, 'Fleece', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(2, 'Organic cotton', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(3, 'Punk', 'tags', '', NULL, 0, [
    0,
  ]);
  $this
    ->assertTermEntity(4, 'Classical', 'tags', '', NULL, 0, [
    0,
  ]);
}