Verified Commit e71bebf8 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3281535 by mondrake, Spokje, daffie, alexpott: Fix 'Access to an...

Issue #3281535 by mondrake, Spokje, daffie, alexpott: Fix 'Access to an undefined property' PHPStan L0 errors in test code
parent d2a938d4
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -59,18 +59,6 @@ protected function setUp(): void {
      'edit own book content',
      'add content to books',
    ]);
    $this->adminUser = $this->drupalCreateUser([
      'create new books',
      'create book content',
      'edit any book content',
      'delete any book content',
      'add content to books',
      'administer blocks',
      'administer permissions',
      'administer book outlines',
      'administer content types',
      'administer site configuration',
    ]);
  }

  /**
+9 −2
Original line number Diff line number Diff line
@@ -26,6 +26,13 @@ class CKEditorToolbarButtonTest extends BrowserTestBase {
   */
  protected $defaultTheme = 'stark';

  /**
   * The admin user.
   *
   * @var \Drupal\user\Entity\User
   */
  protected $adminUser;

  /**
   * {@inheritdoc}
   */
@@ -45,7 +52,7 @@ protected function setUp(): void {
    ])->save();

    // Create a new user with admin rights.
    $this->admin_user = $this->drupalCreateUser([
    $this->adminUser = $this->drupalCreateUser([
      'administer languages',
      'access administration pages',
      'administer site configuration',
@@ -57,7 +64,7 @@ protected function setUp(): void {
   * Method tests CKEditor image buttons.
   */
  public function testImageButtonDisplay() {
    $this->drupalLogin($this->admin_user);
    $this->drupalLogin($this->adminUser);

    // Install the Arabic language (which is RTL) and configure as the default.
    $edit = [];
+14 −0
Original line number Diff line number Diff line
@@ -29,6 +29,20 @@ class AddedStylesheetsTest extends BrowserTestBase {
   */
  protected $defaultTheme = 'stark';

  /**
   * The editor user.
   *
   * @var \Drupal\editor\Entity\Editor
   */
  protected $editor;

  /**
   * The admin user.
   *
   * @var \Drupal\user\Entity\User
   */
  protected $adminUser;

  /**
   * {@inheritdoc}
   */
+7 −0
Original line number Diff line number Diff line
@@ -31,6 +31,13 @@ class CKEditor5QuickEditLibraryTest extends BrowserTestBase {
   */
  protected $defaultTheme = 'stark';

  /**
   * The admin user.
   *
   * @var \Drupal\user\Entity\User
   */
  protected $adminUser;

  /**
   * {@inheritdoc}
   */
+7 −0
Original line number Diff line number Diff line
@@ -67,6 +67,13 @@ class MediaEntityMetadataApiTest extends BrowserTestBase {
   */
  protected $editor;

  /**
   * The admin user.
   *
   * @var \Drupal\user\Entity\User
   */
  protected $adminUser;

  /**
   * @var \Drupal\Component\Uuid\UuidInterface
   */
Loading