Fatal error: Maximum execution time of 60 seconds exceeded in H:\wamp\www\custom\wp-includes\class-wp-http-curl.php
I imported the Theme Unit Test xml file with the wordpress importer. But all of the data is imported as pages. I am … Read more
I imported the Theme Unit Test xml file with the wordpress importer. But all of the data is imported as pages. I am … Read more
I have to test the function where it calls wp_get_attachment_image_src. How do I add an image for testing, because right now if I … Read more
I’ve been following the instructions in this article to try to set up some testing. I got as far as this instruction bash … Read more
I’m currently on the process of unit testing a plugin using the WordPress unit testing framework. In one of the functions to be … Read more
I want to write unit tests for a plugin. I have used WP-CLI to scaffold the test WordPress instance and can successfully run … Read more
The constructor in my class adds an action to the ‘init’ action hook: class My_Custom_Post_Type { function __construct( $type ) { $this->type = … Read more
I’m trying to set up automated tests for my WP- and BP-dependent plugin, as described in: https://codex.buddypress.org/developer/automated-testing/ https://make.wordpress.org/core/handbook/automated-testing/ https://codex.buddypress.org/developer/automated-testing/writing-automated-tests-for-buddypress-dependent-plugins/ And so I’ve initialized … Read more
I’m new with unit testing in WordPress. I managed to setup the unit testing environment using PHP Unit and WordPress tests but I … Read more
One of the things that my plugin does is creates a number of SQL tables as part of a versioning function (that is … Read more
tl;dr: is there a way to make changes to WordPress options during a PHPUnit test suite execution, and have the changes reverted to … Read more