function MigrateTaxonomyTermStubTest::testStub

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyTermStubTest::testStub()
  2. 10 core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyTermStubTest::testStub()
  3. 11.x 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');
}

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