You are here

protected function TaxonomyBehaviorSettingsFormTest::createEntityBundle in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 modules/rh_taxonomy/tests/src/Functional/TaxonomyBehaviorSettingsFormTest.php \Drupal\Tests\rh_taxonomy\Functional\TaxonomyBehaviorSettingsFormTest::createEntityBundle()

Creates new entity bundle.

Return value

string ID of the created bundle.

Overrides RabbitHoleBehaviorSettingsFormTestBase::createEntityBundle

File

modules/rh_taxonomy/tests/src/Functional/TaxonomyBehaviorSettingsFormTest.php, line 43

Class

TaxonomyBehaviorSettingsFormTest
Test the functionality of the rabbit hole form additions to the taxonomy.

Namespace

Drupal\Tests\rh_taxonomy\Functional

Code

protected function createEntityBundle() {
  $this->bundle = $this
    ->createVocabulary();
  return $this->bundle
    ->id();
}