scaffold-command
scaffold-command copied to clipboard
Scaffolding plugin tests manually loads wrong file
Given a plugin: plugins/foo/bar.php
, if you run wp scaffold plugin-tests foo
, tests/bootstrap.php
will generate this:
/**
* Manually load the plugin being tested.
*/
function _manually_load_plugin() {
require dirname( dirname( __FILE__ ) ) . '/foo.php';
}
Expected:
/**
* Manually load the plugin being tested.
*/
function _manually_load_plugin() {
require dirname( dirname( __FILE__ ) ) . '/bar.php';
}