protected function HelpTopicSearchTest::assertSearchResultsCount in Drupal 9
Same name and namespace in other branches
- 8 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.
Parameters
int $count: The expected number of search results.
2 calls to HelpTopicSearchTest::assertSearchResultsCount()
- HelpTopicSearchTest::setUp in core/
modules/ help_topics/ tests/ src/ Functional/ HelpTopicSearchTest.php - HelpTopicSearchTest::testHelpSearch in core/
modules/ help_topics/ tests/ src/ Functional/ HelpTopicSearchTest.php - Tests help topic search.
File
- core/
modules/ help_topics/ tests/ src/ Functional/ HelpTopicSearchTest.php, line 294
Class
- HelpTopicSearchTest
- Verifies help topic search.
Namespace
Drupal\Tests\help_topics\FunctionalCode
protected function assertSearchResultsCount($count) {
$this
->assertSession()
->elementsCount('css', '.help_search-results > li', $count);
}