Register post types before each unit test

Fixes #6501

see
https://core.trac.wordpress.org/changeset/29860/trunk/tests/phpunit/incl
udes/testcase.php, apparently we were #doingitwrong  🙈
Merge pull request #6503 from maxrice/6501-fix-failing-tests

Register post types before each unit test