View source
<?php
namespace Drupal\Tests\commerce_migrate_woocommerce\Kernel\Migrate\woo3;
use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateCoreTestTrait;
use Drupal\Tests\commerce_migrate\Kernel\CsvTestBase;
class TaxonomyTagTermTest extends CsvTestBase {
use CommerceMigrateCoreTestTrait;
public static $modules = [
'commerce_migrate_woocommerce',
'taxonomy',
'text',
'user',
];
protected $fixtures = __DIR__ . '/../../../../fixtures/csv/woo3-product-export-7-5-2018-1525686755964.csv';
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('taxonomy_term');
$this
->executeMigrations([
'woo3_taxonomy_vocabulary',
'woo3_tag_term',
]);
}
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,
]);
}
}