public function BundlelessEntityTest::setUp in Search API 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ Datasource/ BundlelessEntityTest.php, line 44
Class
- BundlelessEntityTest
- Tests indexing entities that use string IDs.
Namespace
Drupal\Tests\search_api\Kernel\DatasourceCode
public function setUp() {
parent::setUp();
$this
->installEntitySchema('search_api_task');
$this
->installConfig([
'user',
]);
// Create a test index.
$this->index = Index::create([
'name' => 'Test Index',
'id' => 'test_index',
'status' => FALSE,
'datasource_settings' => [
'entity:' . $this->testEntityTypeId => [],
],
'tracker_settings' => [
'default' => [],
],
]);
$this->index
->save();
}