mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-06 10:45:44 +03:00
Tests: Modularize database fixtures for reuse.
This commit is contained in:
parent
977613e8d9
commit
913461cc4a
3 changed files with 123 additions and 81 deletions
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue