bobbingwide / oik-css

[bw_css] shortcode for internal CSS styling
https://www.oik-plugins.com/oik-plugins/oik-css
0 stars 0 forks source link

PHPUnit tests don't run unless oik-bwtrace is activated #12

Closed bobbingwide closed 3 years ago

bobbingwide commented 4 years ago

When attempting to test oik-css after applying a fix it failed immediately

1) Tests_admin_oik_css::test_oik_css_options_bw_autop_enabled
Error: Call to undefined function bw_form_start()

Activating oik-bwtrace resolves the problem.

Determine if this is sensible requirement.

Note: oik-css delivers two blocks: CSS and GeSHi. These work even when oik is not activated, but the admin page is dependent upon oik.

bobbingwide commented 3 years ago

I've just rerun the tests for oik-css with oik-bwtrace deactivated. They ran to completion. This could be because another plugin has loaded the bobbforms shared library. Difficult to check without oik-bwtrace loaded!

Closing for now. Reopen if the problem recurs in a different environment. An alternative solution would be to change the test to check for bw_form_start() and make it fail nicely. But to do that we still have to make it fail in the first place.