Skip to content

Scaffolding plugin tests manually loads wrong file #190

@markjaquith

Description

@markjaquith

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions