[wp-trac] [WordPress Trac] #47309: wp_script_is seems to fail in unit tests during plugin development
WordPress Trac
noreply at wordpress.org
Fri May 17 18:21:18 UTC 2019
#47309: wp_script_is seems to fail in unit tests during plugin development
---------------------------+----------------------
Reporter: tedmaster | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Script Loader | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
---------------------------+----------------------
Changes (by swissspidy):
* keywords: close =>
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
I was just about to comment :-)
You are hooking your `wp_enqueue_script` call to the `wp_enqueue_scripts`
action, which fires on page load. However, this action is never fired in
your test. You would manually need to do that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47309#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list