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. 8.9.x core/modules/taxonomy/tests/src/Functional/VocabularySerializationTest.php \Drupal\Tests\taxonomy\Functional\VocabularySerializationTest::setUp()
  3. 10 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 36

Class

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

Namespace

Drupal\Tests\taxonomy\Functional

Code

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

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