HelpPageReverseOrderTest.php

Same filename in this branch
  1. 11.x core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php
Same filename and directory in other branches
  1. 10 core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php
  2. 9 core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php
  3. 8.9.x core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php
  4. main core/modules/help/tests/src/Functional/HelpPageReverseOrderTest.php

Namespace

Drupal\Tests\help\Kernel

File

core/modules/help/tests/src/Kernel/HelpPageReverseOrderTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\help\Kernel;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Verify the order of the help page with an alter hook.
 */
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',
  ];

}

Classes

Title Deprecated Summary
HelpPageReverseOrderTest Verify the order of the help page with an alter hook.

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