TaxonomyVocabularyTest.php in Commerce Migrate 3.1.x
File
modules/magento/tests/src/Kernel/Migrate/magento2/TaxonomyVocabularyTest.php
View source
<?php
namespace Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2;
use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateCoreTestTrait;
use Drupal\Tests\commerce_migrate\Kernel\CsvTestBase;
use Drupal\taxonomy\VocabularyInterface;
class TaxonomyVocabularyTest extends CsvTestBase {
use CommerceMigrateCoreTestTrait;
protected static $modules = [
'commerce_migrate',
'commerce_migrate_magento',
'taxonomy',
'text',
'user',
];
protected $fixtures = __DIR__ . '/../../../../fixtures/csv/magento2-catalog_product_20180326_013553.csv';
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('taxonomy_term');
$this
->executeMigration('magento2_category');
}
public function testTaxonomyVocabulary() {
$this
->assertVocabularyEntity('default_category', 'Default Category', NULL, VocabularyInterface::HIERARCHY_DISABLED, 0);
}
}