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 chache 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 processesingfor 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.

Read more here:: How do I phpunit test a post output process?

Leave a Reply

Your email address will not be published. Required fields are marked *