You are here

public function SearchApiDbUpdate8102Test::testUpdate8102 in Search API 8

Tests whether search_api_db_update_8102() works correctly.

See also

https://www.drupal.org/node/2884451

File

modules/search_api_db/src/Tests/Update/SearchApiDbUpdate8102Test.php, line 58

Class

SearchApiDbUpdate8102Test
Tests whether search_api_db_update_8102() works correctly.

Namespace

Drupal\search_api_db\Tests\Update

Code

public function testUpdate8102() {
  $this
    ->assertNotHasPrimaryKey('search_api_db_index_1');
  $this
    ->assertHasPrimaryKey('search_api_db_index_2');
  $this
    ->runUpdates();
  $this
    ->assertHasPrimaryKey('search_api_db_index_1');
  $this
    ->assertHasPrimaryKey('search_api_db_index_2');
}