wp-shortcake / shortcake-bakery

A fine selection of shortcodes for WordPress
42 stars 16 forks source link

Set WP_PLUGIN_DIR constant for tests #202

Closed goldenapples closed 7 years ago

goldenapples commented 7 years ago

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.)

davisshaver commented 7 years ago

:star2: