Closed markjaquith closed 7 months ago
Given a plugin: plugins/foo/bar.php, if you run wp scaffold plugin-tests foo, tests/bootstrap.php will generate this:
plugins/foo/bar.php
wp scaffold plugin-tests foo
tests/bootstrap.php
/** * 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'; }
Given a plugin:
plugins/foo/bar.php
, if you runwp scaffold plugin-tests foo
,tests/bootstrap.php
will generate this:Expected: