createUser() deprecated

Created on 18 January 2024, 5 months ago
Updated 19 January 2024, 5 months ago

Problem/Motivation

  4x: Calling createUser() with $permissions as the second parameter is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. Use createUser(array $permissions = [], $name = NULL, $admin = FALSE, array $values = []) instead. See https://www.drupal.org/node/3330762
    2x in ModerationNoteEntityTest::testAccess from Drupal\Tests\moderation_note\Kernel
    1x in ModerationNoteEntityTest::testModeratedEntity from Drupal\Tests\moderation_note\Kernel
    1x in ModerationNoteEntityTest::testParentNote from Drupal\Tests\moderation_note\Kernel

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States bluegeek9

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

  • Issue created by @bluegeek9
  • First commit to issue fork.
  • Status changed to Needs review 5 months ago
  • 🇮🇳India viren18febS

    I have added a patch with updated way for createUser() with drupal 10 , please review.
    Thanks

Production build 0.69.0 2024