class HelpPageReverseOrderTest

Same name in this branch
  1. 11.x core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php \Drupal\Tests\help\Functional\HelpPageReverseOrderTest
Same name and namespace in other branches
  1. 10 core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php \Drupal\Tests\help\Functional\HelpPageReverseOrderTest
  2. 9 core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php \Drupal\Tests\help\Functional\HelpPageReverseOrderTest
  3. 8.9.x core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php \Drupal\Tests\help\Functional\HelpPageReverseOrderTest
  4. main core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php \Drupal\Tests\help\Functional\HelpPageReverseOrderTest

Verify the order of the help page with an alter hook.

Attributes

#[Group('help')] #[RunTestsInSeparateProcesses]

Hierarchy

Expanded class hierarchy of HelpPageReverseOrderTest

File

core/modules/help/tests/src/Kernel/HelpPageReverseOrderTest.php, line 13

Namespace

Drupal\Tests\help\Kernel
View source
class HelpPageReverseOrderTest extends HelpPageOrderTest {
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'more_help_page_test',
  ];
  
  /**
   * Strings to search for on admin/help, in order.
   *
   * These are reversed, due to the alter hook.
   *
   * @var string[]
   */
  protected array $stringOrder = [
    'This description should appear',
    'Module overviews are provided',
  ];

}

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