You are here

protected function ExampleContentTrait::setUpExampleStructure in Search API 8

Sets up the necessary bundles on the test entity type.

5 calls to ExampleContentTrait::setUpExampleStructure()
AutocompleteTest::setUp in modules/search_api_db/tests/src/Kernel/AutocompleteTest.php
BackendTestBase::setUp in tests/src/Kernel/BackendTestBase.php
CacheabilityTest::setUp in tests/src/Functional/CacheabilityTest.php
CommandHelperTest::setUp in tests/src/Kernel/System/CommandHelperTest.php
ContentEntityDatasourceTest::setUp in tests/src/Kernel/Datasource/ContentEntityDatasourceTest.php

File

tests/src/Functional/ExampleContentTrait.php, line 30

Class

ExampleContentTrait
Contains helpers to create data that can be used by tests.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function setUpExampleStructure() {
  entity_test_create_bundle('item', NULL, 'entity_test_mulrev_changed');
  entity_test_create_bundle('article', NULL, 'entity_test_mulrev_changed');
}