You are here

protected function HelpTopicSearchTest::assertSearchResultsCount in Drupal 10

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

Asserts that help search returned the expected number of results.

@internal

Parameters

int $count: The expected number of search results.

File

core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php, line 299

Class

HelpTopicSearchTest
Verifies help topic search.

Namespace

Drupal\Tests\help_topics\Functional

Code

protected function assertSearchResultsCount(int $count) : void {
  $this
    ->assertSession()
    ->elementsCount('css', '.help_search-results > li', $count);
}