You are here

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

Same name and namespace in other branches
  1. 8.2 modules/csv_example/tests/src/Kernel/Migrate/TaxonomyTermTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\TaxonomyTermTest::testTaxonomyTerms()
  2. 3.0.x modules/csv_example/tests/src/Kernel/Migrate/TaxonomyTermTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\TaxonomyTermTest::testTaxonomyTerms()

Tests the taxonomy term migration.

File

modules/csv_example/tests/src/Kernel/Migrate/TaxonomyTermTest.php, line 106

Class

TaxonomyTermTest
Upgrade taxonomy terms.

Namespace

Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate

Code

public function testTaxonomyTerms() {
  $this
    ->assertEntity(1, 'Wetsuit', 'category', '', NULL, 0);
  $this
    ->assertEntity(2, 'Summer', 'season', '', NULL, 0);
  $this
    ->assertEntity(3, 'Winter', 'season', '', NULL, 0);
  $this
    ->assertEntity(4, 'Misc', 'category', '', NULL, 0);
  $this
    ->assertEntity(5, 'Camera', 'category', '', NULL, 0);
  $this
    ->assertEntity(6, 'All', 'season', '', NULL, 0);
}