[wp-trac] [WordPress Trac] #42904: Speed up unit tests by disabling password hashing
WordPress Trac
noreply at wordpress.org
Sat Dec 16 14:14:36 UTC 2017
#42904: Speed up unit tests by disabling password hashing
-----------------------------------+------------------
Reporter: Frank Klein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------
Comment (by boonebgorges):
15 seconds reduction off of 100s total is a pretty big win, IMO. I don't
see the downside.
One thing I'd suggest is that the `$GLOBALS` juggling could happen inside
of the `User` factory class. Perhaps the `create()` method could accept a
`skip_password_hash` param that would default to false. This would make it
more transparent how to override when a test case needs a hashed pass.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42904#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list