You are here

public function MigrateTaxonomyTermStubTest::testStub in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyTermStubTest::testStub()
  2. 9 core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyTermStubTest::testStub()

Tests creation of taxonomy term stubs.

File

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

Class

MigrateTaxonomyTermStubTest
Test stub creation for taxonomy terms.

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate

Code

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