In recent versions WP_UnitTestCase has included a $factory property. For example: $post = $this->factory->post->create(); Where […]
Tag: unit-tests
How do I mock HTTP requests for PHPUnit?
I’m writing a plugin that makes requests to the Facebook graph API. As I don’t […]
how to test a theme upgrade
Is there a way to test run a theme through the automatic updater? We have […]
Implement phpunit testing on a plugin
I’ve just finished writing a WordPress plugin implementing shortcode tag based autocompletion based on values […]
struggling to set up WP tests
I want to contribute to a guys plugin (TimberWp). I’d like to do it with […]
Canât get the phpunit core test for WordPress to work
Iâm trying to set up the test for the WordPress core to make sure that […]
how to set context in WordPress for unit testing
I have created a wordpress plugin which converts shortcodes to content based on the entry […]
WordPress Themes and PHP unit
Is there any examples of using PHP unit tests with WordPress themes, seems a lot […]
Error Testing create_empty_blog() via PHPUnit + Unit Tests
I have been reading up on TDD for a little while, and now have a […]
Why Can’t PHPUnit UnitTest My WordPress Website
I have been researching this issue for days and although many people ask this question […]
No More Posts Available.
No more pages to load.