class SearchUpdateUserTest

Same name and namespace in other branches
  1. 11.x core/modules/search/tests/src/Functional/Update/SearchUpdateUserTest.php \Drupal\Tests\search\Functional\Update\SearchUpdateUserTest

Tests moving search from user to to search_user.

Attributes

#[Group('search')] #[RunTestsInSeparateProcesses] #[IgnoreDeprecations]

Hierarchy

Expanded class hierarchy of SearchUpdateUserTest

File

core/modules/search/tests/src/Functional/Update/SearchUpdateUserTest.php, line 15

Namespace

Drupal\Tests\search\Functional\Update
View source
class SearchUpdateUserTest extends UpdatePathTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * {@inheritdoc}
   */
  protected function setDatabaseDumpFiles() : void {
    $this->databaseDumpFiles = [
      __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-11.3.0.bare.standard.php.gz',
    ];
  }
  
  /**
   * Tests system_update_11402.
   *
   * @see system_update_11402()
   */
  public function testSearchHelpInstall() : void {
    $this->assertFalse(\Drupal::moduleHandler()->moduleExists('search_user'));
    $this->runUpdates();
    $this->assertTrue(\Drupal::moduleHandler()->moduleExists('search_user'));
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.