function ModerationStateTaxonomyTermTest::setUp
Same name in other branches
- 11.x core/modules/content_moderation/tests/src/Functional/ModerationStateTaxonomyTermTest.php \Drupal\Tests\content_moderation\Functional\ModerationStateTaxonomyTermTest::setUp()
Overrides ModerationStateTestBase::setUp
File
-
core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateTaxonomyTermTest.php, line 26
Class
- ModerationStateTaxonomyTermTest
- Tests the taxonomy term moderation handler.
Namespace
Drupal\Tests\content_moderation\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create a "Tags" vocabulary.
$bundle = Vocabulary::create([
'vid' => 'tags',
'name' => 'Tags',
'new_revision' => FALSE,
])->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.