bobbingwide / oik

OIK Information Kit
https://www.oik-plugins.com/oik-plugins/oik
GNU General Public License v2.0
2 stars 0 forks source link

Update tests to work with PHPUnit 8 #135

Closed bobbingwide closed 4 years ago

bobbingwide commented 4 years ago

I need to confirm that the PHPUnit tests work ( specifically those for #69 ) in order to clone https://github.com/bobbingwide/oik-bwtrace/issues/59

All the setUp methods will need :void added.

bobbingwide commented 4 years ago

After performing the above there was 1 warning: 1) Tests_prerequisites::test_wp_upload_dir Using assertContains() with string haystacks is deprecated and will not be supported in PHPUnit 9. Refactor your test to use assertStringContainsString() or assertStringContainsStringIgnoringCase() instead.

--

bobbingwide commented 4 years ago

The tests now run to completion for s.b/wordpress and s.b/oikcom.

Note: If it's a WP-a2z installation then readme.html might need to be copied to the installation directory.