Opened 3 years ago
Closed 11 months ago
#10 closed defect (fixed)
Correct and make use of TestPluginMenus
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Fix Existing Tests |
| Component: | Test Framework | Keywords: | has-patch |
| Cc: |
Description
Currently some incorrect assertions for sub menus added to custom top level menus.
_WPEmptyBlog sets the site url to be example.com so we should be able to use that instead of null.host
Also see #WP14159
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.

[326]
Works great on its own, but noticed that it sometimes fails when run with all other tests. I believe this is because user with ID 1 is deleted at some previous point (so problems with separation of tests) by seeing that var_dump( get_userdata(1) ); is false. Patch attached to make a new administrator user which is deleted at the end of the test instead of relying on user ID 1.