Tests: Modularize database fixtures for reuse.

This commit is contained in:
Ian Dunn 2022-08-18 08:12:40 -07:00
parent c9783a17f5
commit 0be2f859f9
3 changed files with 123 additions and 81 deletions

View file

@ -22,6 +22,7 @@ require_once $_tests_dir . '/includes/functions.php';
*/
function _manually_load_plugin() {
require dirname( dirname( __FILE__ ) ) . '/index.php';
require __DIR__ . '/helpers.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );