Opened 8 years ago
Closed 8 years ago
#41860 closed enhancement (fixed)
Unit test for wp_auth_check()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.9 | Priority: | low |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Hi All
Just some Unit tests for function wp_auth_check() from functions.php
Paul
Attachments (4)
Change History (12)
#1
@
8 years ago
Hi @pbearne
It looks good to me.
Just two remarks:
- Missing @ticket annotation for each method? ... or is that only for bug referencing?
- as the modified global state can affect other test methods, shouldn't we restore it, if we modify it?
I updated the patch with this in mind in 41860.2.patch
#4
@
8 years ago
This ticket patch as patch of Virtual Contrib 2 core Meetup
https://www.youtube.com/watch?v=xoQkp_aZzfE
https://www.meetup.com/The-Ottawa-WordPress-Group/events/242253849/
https://www.meetup.com/WPToronto/events/243121890/
#6
@
8 years ago
- Milestone changed from Awaiting Review to 4.9
- Owner set to johnbillion
- Priority changed from normal to low
- Status changed from new to reviewing
- Version trunk deleted
#7
@
8 years ago
Updated a little bit in 41860.4.patch:
- moved the clean-up before the assertion - see here in an unrelated ticket: 42044#comment:1.
- changed
assertEquals()
toassertSame()
, to avoid null, empty string and false being treated equally.
Note: See
TracTickets for help on using
tickets.
Unit tests