multiple-domain icon indicating copy to clipboard operation
multiple-domain copied to clipboard

Improve automated tests

Open straube opened this issue 6 years ago • 3 comments

I'm not sure whether all features can be tested outside a WP installation (possibly Mockery would be helpful on that) but at least the utilities and some other methods could be automatically tested with PHPUnit. I guess the first step to achieve that is moving the MultipleDomain class have to its own file. That would separate the plugin bootstrap logic from the class itself.

straube avatar May 25 '18 11:05 straube

A helpful link: https://make.wordpress.org/cli/handbook/plugin-unit-tests/. Perhaps?

straube avatar Mar 12 '19 13:03 straube

The tests we have now are too limited in terms of code coverage. They simply look for errors in instance creating. I'm reopening this issue to improve the tests.

straube avatar Oct 28 '19 12:10 straube

The current Travis configuration tests the code in old PHP releases. As an effort to make people use recent/secure versions, stop testing in these versions is a good thing.

straube avatar Oct 29 '20 23:10 straube