scaffold-command icon indicating copy to clipboard operation
scaffold-command copied to clipboard

Scaffolding plugin tests manually loads wrong file

Open markjaquith opened this issue 5 years ago • 0 comments

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';
}

markjaquith avatar Dec 03 '18 18:12 markjaquith