You are here

protected function TaxonomyEntityIndexEntityTest::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/TaxonomyEntityIndexEntityTest.php, line 54

Class

TaxonomyEntityIndexEntityTest
Defines a class for testing basic functionality of taxonomy_entity_index.

Namespace

Drupal\Tests\taxonomy_entity_index\Kernel

Code

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