Closed (fixed)
Project:
Drupal core
Version:
9.4.x-dev
Component:
user.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2022 at 10:26 UTC
Updated:
18 Apr 2022 at 14:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
catchCrediting TR who spotted this.
Comment #4
murilohp commentedThis issue is blocking #3055807: User created via /user/register?_format=json get blocked, so I just rollback
RestRegisterUserTestinto the user module and removed the hal integration, the filename is nowUserRegistrationRestTest, the idea of a new name is to follow the user's tests pattern.Comment #5
murilohp commentedJust to help you out here with the review, here's a diff between the old test(
core/modules/hal/tests/src/Functional/user/RestRegisterUserTest.php) and the new one(core/modules/user/tests/src/Functional/UserRegistrationRestTest.php)Comment #6
tr commentedComment #7
bbralaSubmitted to early.
Comment #8
bbralaComment #9
bbralaI've gone through the changes and they are looking good. Ran test locally and they passed also. I did this for d9 and d10.
The testfailure on 10.0.x is not related to this change so setting RTBC while we wait for green tests.
Comment #10
spokjeSorry to be the nit-picker, but I have 1 _very_ minor comment:
Can we have "rest" in CAPS here, to fit in with the rest *baduum-tish* of Core?
Comment #11
bbralaNot entirely true, but seems to be the prevalent version by far. :P (only found one lowercase in a quick search in
CsrfRequestHeaderAccessCheck.php)Comment #12
murilohp commentedAddressing #10 here.
Comment #13
murilohp commentedComment #14
bbralaWell done, thanks.
Comment #15
spokjeThanks @murilohp!
RTBC if TestBot agrees
INSTA-EDIT: ^What @bbrala said...
Comment #16
alexpottCommitted f73d11a and pushed to 10.0.x. Thanks!
Backported to 9.4.x so the test is in 9 and 10.