You are here

protected function SearchNodeDiacriticsTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php \Drupal\Tests\search\Functional\SearchNodeDiacriticsTest::setUp()
  2. 9 core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php \Drupal\Tests\search\Functional\SearchNodeDiacriticsTest::setUp()

File

core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php, line 31

Class

SearchNodeDiacriticsTest
Tests search functionality with diacritics.

Namespace

Drupal\Tests\search\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  node_access_rebuild();

  // Create a test user and log in.
  $this->testUser = $this
    ->drupalCreateUser([
    'access content',
    'search content',
    'use advanced search',
    'access user profiles',
  ]);
  $this
    ->drupalLogin($this->testUser);
}