function MigrateTaxonomyTermStubTest::testStub

Tests creation of taxonomy term stubs.

File

core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php, line 38

Class

MigrateTaxonomyTermStubTest
Test stub creation for taxonomy terms.

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate

Code

public function testStub() : void {
  Vocabulary::create([
    'vid' => 'test_vocabulary',
    'name' => 'Test vocabulary',
  ])->save();
  $this->performStubTest('taxonomy_term');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.