Failing test case for profiling muplugins_loaded:before

This commit is contained in:
Daniel Bachhuber 2016-10-19 04:54:58 -07:00
parent 16ddb3c3dc
commit b60edfa0d8

View file

@ -120,3 +120,20 @@ Feature: Profile a specific hook
"""
Warning: Called 1
"""
Scenario: Profile the mu_plugins:before hook
Given a WP install
And a wp-content/mu-plugins/awesome-file.php file:
"""
<?php
function awesome_func() {
// does nothing
}
awesome_func();
"""
When I run `wp profile hook muplugins_loaded:before --fields=callback`
Then STDOUT should contain:
"""
wp-content/mu-plugins/awesome-file.php
"""