How do I phpunit test a post output process?
I like to know how to test the html output of a post. Like WP would output it on the frontend in reality.
My specific case at this point is to test oembed caching as I want to test re-caching. AFAIK WP does only cache oembed results if they are associated with a post. So I can not just run some text though the_content
filter. I like to test the real post processioning for this and in general for other cases that may come up.
So far in my search I only found tutorials how to create a post in unit testing but not how to actually run tests on it.