Verified Commit 7156a086 authored by godotislate's avatar godotislate
Browse files

fix: #3617563 HelpTest docs say it's working with the anonymous user, but it's not

By: charlliequadros
By: dcam
By: mstrelan
parent 924d5089
Loading
Loading
Loading
Loading
+4 −7
Changes for core/modules/help/tests/src/Kernel/HelpTest.php: 4 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
use Drupal\Tests\block\Traits\BlockCreationTrait;
use Drupal\Tests\HttpKernelUiHelperTrait;
use Drupal\Tests\user\Traits\UserCreationTrait;
use Drupal\user\UserInterface;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

@@ -47,17 +48,13 @@ class HelpTest extends KernelTestBase {

  /**
   * The admin user that will be created.
   *
   * @var \Drupal\user\Entity\User|false
   */
  protected $adminUser;
  protected UserInterface $adminUser;

  /**
   * The anonymous user that will be created.
   *
   * @var \Drupal\user\Entity\User|false
   * A regular authenticated user without additional permissions.
   */
  protected $anyUser;
  protected UserInterface $anyUser;

  /**
   * {@inheritdoc}
+1 −1
Changes for core/modules/help/tests/src/Kernel/HelpTopicTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ class HelpTopicTest extends KernelTestBase {
  protected $noTestUser;

  /**
   * The anonymous user that will be created.
   * A regular authenticated user without additional permissions.
   *
   * @var \Drupal\user\UserInterface
   */