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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | issues-3415621-updated-parameter-for-deprecated-createUser-method.patch | 1.63 KB | viren18febs |
Issue fork moderation_note-3415596
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
viren18febs commentedI have added a patch with updated way for createUser() with drupal 10 , please review.
Thanks
Comment #6
bluegeek9 commentedComment #8
bluegeek9 commentedUpdating credits.