TaxonomyVocabularyTest.php in Commerce Migrate 3.0.x
File
modules/shopify/tests/src/Kernel/Migrate/TaxonomyVocabularyTest.php
View source
<?php
namespace Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate;
use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateCoreTestTrait;
use Drupal\taxonomy\VocabularyInterface;
use Drupal\Tests\commerce_migrate\Kernel\CsvTestBase;
class TaxonomyVocabularyTest extends CsvTestBase {
use CommerceMigrateCoreTestTrait;
public static $modules = [
'taxonomy',
'commerce_migrate_shopify',
'text',
'user',
];
protected $fixtures = __DIR__ . '/../../../fixtures/csv/shopify-products_export_test.csv';
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('taxonomy_term');
$this
->executeMigration('shopify_taxonomy_vocabulary');
}
public function testTaxonomyVocabulary() {
$this
->assertVocabularyEntity('tags', 'Tags', 'Tags', VocabularyInterface::HIERARCHY_DISABLED, 0);
}
}