Commit 800e9632 authored by Thomas Seiber's avatar Thomas Seiber
Browse files

Issue #3292241 by drunken monkey: Fixed test fails.

parent 19509b56
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
Search API 1.x, dev (xxxx-xx-xx):
---------------------------------
- #3292241 by drunken monkey: Fixed test fails.
- #3243313 by Steven Jones, drunken monkey: Removed the "search_api_base_path"
  query option for views.
- #3179643 by drunken monkey: Fixed Views field extraction bevahior when fields
+10 −0
Changes for modules/search_api_db/search_api_db_defaults/tests/src/Functional/IntegrationTest.php: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -61,6 +61,14 @@ class IntegrationTest extends BrowserTestBase {
    // Installation invokes a batch and this breaks it.
    \Drupal::state()->set('search_api_use_tracking_batch', FALSE);

    // Uninstall the Core search module.
    $edit_enable = [
      'uninstall[search]' => TRUE,
    ];
    $this->drupalGet('admin/modules/uninstall');
    $this->submitForm($edit_enable, 'Uninstall');
    $this->submitForm([], 'Uninstall');

    // Install the search_api_db_defaults module.
    $edit_enable = [
      'modules[search_api_db_defaults][enable]' => TRUE,
@@ -110,6 +118,8 @@ class IntegrationTest extends BrowserTestBase {
    $this->submitForm(['keys' => 'test'], 'Search');
    $this->assertSession()->pageTextContains($title);
    $this->assertSession()->responseNotContains('Error message');
    $this->assertSession()->pageTextNotContains('Please enter some keywords.');
    $this->assertSession()->pageTextNotContains('Your search yielded no results.');

    // Uninstall the module.
    $this->drupalLogin($this->adminUser);