Closed obenland closed 1 week ago
@pfefferle I asked Claude.ai to create some unit tests for the get_type()
method as it's written in trunk, so we can compare future changes with those outcomes.
It currently fails for posts without a post format (test_get_type_handles_missing_post_format
), probably because of a wrong assumption? Posts with a title, more than 400 char content and no post format should be considered Articles, yes?
@obenland I would say so, yes.
Yeah I got a phpcs error for the filename without the pre-pended class-
. I'll do a follow up.
Allows us to make changes with more confidence in the future.
Fixes #
Proposed changes:
*
Other information:
Testing instructions: