mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
Tests: Modularize database fixtures for reuse.
This commit is contained in:
parent
c9783a17f5
commit
0be2f859f9
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