public function SearchApiSortsKernelTest::setUp in Search API sorts 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ SearchApiSortsKernelTest.php, line 42
Class
- SearchApiSortsKernelTest
- Kernel test for search_api_sorts module.
Namespace
Drupal\Tests\search_api_sorts\KernelCode
public function setUp() : void {
parent::setUp();
$this
->installEntitySchema('entity_test_mulrev_changed');
$this
->installEntitySchema('search_api_task');
$this
->installEntitySchema('search_api_sorts_field');
$this
->installConfig([
'search_api',
'search_api_test_db',
'search_api_db',
'search_api_sorts_test_views',
]);
$service = \Drupal::service('search_api_sorts_test_entity.query.config');
$entityType = \Drupal::entityTypeManager()
->getDefinition('search_api_sorts_field');
$this->records = $service
->get($entityType, 'AND')
->getRecords();
}