You are here

protected function TaxonomyEntityIndexFieldNamesTest::createBundles in Taxonomy Entity Index 8

Creates bundles required for testing the given entity type.

Parameters

string $entity_type_id: Entity Type ID to create bundles for.

Return value

array Array of bundle IDs created

Overrides TaxonomyEntityIndexKernelTestBase::createBundles

File

tests/src/Kernel/TaxonomyEntityIndexFieldNamesTest.php, line 15

Class

TaxonomyEntityIndexFieldNamesTest
Defines a class for testing .

Namespace

Drupal\Tests\taxonomy_entity_index\Kernel

Code

protected function createBundles($entity_type_id) {
  entity_test_create_bundle('test');
  return [
    'test',
  ];
}