function VocabularySerializationTest::setUp

Same name in other branches
  1. 9 core/modules/taxonomy/tests/src/Functional/VocabularySerializationTest.php \Drupal\Tests\taxonomy\Functional\VocabularySerializationTest::setUp()
  2. 10 core/modules/taxonomy/tests/src/Functional/VocabularySerializationTest.php \Drupal\Tests\taxonomy\Functional\VocabularySerializationTest::setUp()
  3. 11.x core/modules/taxonomy/tests/src/Functional/VocabularySerializationTest.php \Drupal\Tests\taxonomy\Functional\VocabularySerializationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/taxonomy/tests/src/Functional/VocabularySerializationTest.php, line 34

Class

VocabularySerializationTest
Regression test for https://www.drupal.org/node/2807263.

Namespace

Drupal\Tests\taxonomy\Functional

Code

public function setUp() {
    parent::setUp();
    Vocabulary::create([
        'vid' => 'test',
    ])->save();
}

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