Register post types before each unit test

Fixes #6501

see https://core.trac.wordpress.org/changeset/29860/trunk/tests/phpunit/includes/testcase.php -- apparently we were #doingitwrong 🙈