function VocabularyValidationTest::setUp
Same name in other branches
- 10 core/modules/taxonomy/tests/src/Kernel/VocabularyValidationTest.php \Drupal\Tests\taxonomy\Kernel\VocabularyValidationTest::setUp()
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
modules/ taxonomy/ tests/ src/ Kernel/ VocabularyValidationTest.php, line 30
Class
- VocabularyValidationTest
- Tests validation of vocabulary entities.
Namespace
Drupal\Tests\taxonomy\KernelCode
protected function setUp() : void {
parent::setUp();
$this->entity = Vocabulary::create([
'vid' => 'test',
'name' => 'Test',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.