Skip to content

Commit a78d936

Browse files
committed
1 parent 207f5e4 commit a78d936

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/bootstrap.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@
1717
* Load required plugins
1818
*/
1919
function _manually_load_plugin() {
20+
$_wp_content_dir = getenv( 'WP_CORE_DIR' );
21+
if ( ! $_wp_content_dir ) {
22+
$_wp_content_dir = '/tmp/wp-graphql-jwt-authentication/wordpress/wp-content';
23+
}
24+
25+
require_once $_wp_content_dir . '/plugins/wp-graphql/wp-graphql.php';
2026
require_once dirname( dirname( __FILE__ ) ) . '/wp-graphql-jwt-authentication.php';
21-
require_once dirname( dirname( __FILE__, 2 ) ) . '/wp-graphql/wp-graphql.php';
2227
}
2328
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
2429

0 commit comments

Comments
 (0)