You are here

protected function BackendTest::checkTableNames in Search API 8

Verifies that the generated table names are correct.

File

modules/search_api_db/tests/src/Kernel/BackendTest.php, line 209

Class

BackendTest
Tests index and search capabilities using the Database search backend.

Namespace

Drupal\Tests\search_api_db\Kernel

Code

protected function checkTableNames() {
  $this
    ->assertEquals('search_api_db_database_search_index_1', $this
    ->getIndexDbInfo()['index_table']);
  $this
    ->assertEquals('search_api_db_database_search_index_text', $this
    ->getIndexDbInfo()['field_tables']['body']['table']);
}