[wp-trac] [WordPress Trac] #55632: WordPress database error when running PHPUnit tests

WordPress Trac noreply at wordpress.org
Thu Apr 28 09:59:12 UTC 2022


#55632: WordPress database error when running PHPUnit tests
-------------------------------------+---------------------
 Reporter:  Chouby                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.0
Component:  Build/Test Tools         |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+---------------------

Comment (by SergeyBiryukov):

 Replying to [comment:5 peterwilsoncc]:
 > An alternative might be to move `$fn_register_webfonts` to run early on
 the `wp_enqueue_scripts` hook.

 Just noting that this option also works in my testing. Could that be the
 preferred approach here? Is there a use case for registering webfonts
 earlier, like currently on the `wp_loaded` hook?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55632#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list