Prevents ugly failures caused by the symlink in the test suite.
Since the test suite failures in #197 are caused by the symlink in the test setup and not anything in the plugin itself, defining the plugin dir correctly for tests seems like the best solution here. (If a user wants to register symlinks for their individual setup, they'll have to do something like this anyways, either by defining the whole plugin directory in a constant as this is doing, or by adding a filter to plugins_url or plugin_basename.)
Prevents ugly failures caused by the symlink in the test suite.
Since the test suite failures in #197 are caused by the symlink in the test setup and not anything in the plugin itself, defining the plugin dir correctly for tests seems like the best solution here. (If a user wants to register symlinks for their individual setup, they'll have to do something like this anyways, either by defining the whole plugin directory in a constant as this is doing, or by adding a filter to
plugins_url
orplugin_basename
.)