SearchUpdateTest.php

Namespace

Drupal\Tests\search\Functional\Update

File

core/modules/search/tests/src/Functional/Update/SearchUpdateTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\search\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests moving search from node to search_node.
 */
class SearchUpdateTest 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_12002.
   *
   * @see system_update_12002()
   */
  public function testSearchHelpInstall() : void {
    $this->assertFalse(\Drupal::moduleHandler()->moduleExists('search_node'));
    $this->runUpdates();
    $this->assertTrue(\Drupal::moduleHandler()->moduleExists('search_node'));
  }

}

Classes

Title Deprecated Summary
SearchUpdateTest Tests moving search from node to search_node.

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