[wp-trac] [WordPress Trac] #16293: In multisite installs, users with id 1 can't be deleted
WordPress Trac
noreply at wordpress.org
Thu Aug 24 15:26:26 UTC 2023
#16293: In multisite installs, users with id 1 can't be deleted
-------------------------------------------------+-------------------------
Reporter: PeteMall | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.4
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses: multisite
tests |
-------------------------------------------------+-------------------------
Comment (by jeremyfelt):
> Regarding tests, it seems it would belong to an e2e test instead of a
unit test, no?
Agreed. I've had a hard time thinking through how to test this change with
phpunit. This code impacts an admin page handling a POST request, so I
think if tests are possible, they'd make more sense in the e2e test
environment.
FWIW, I've read through the change and its surrounding code again and I
still feel pretty comfortable with my earlier comments on this ticket. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16293#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list