protected function IndexLoadItemsTest::setUp in Search API 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ Index/ IndexLoadItemsTest.php, line 38
Class
- IndexLoadItemsTest
- Tests whether loading items works correctly.
Namespace
Drupal\Tests\search_api\Kernel\IndexCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('search_api_task');
$server = Server::create([
'id' => 'test',
'backend' => 'search_api_test',
]);
$this->index = Index::create([
'tracker_settings' => [
'search_api_test' => [],
],
'datasource_settings' => [
'search_api_test' => [],
],
]);
$this->index
->setServer($server);
}