We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207f5e4 commit a78d936Copy full SHA for a78d936
tests/bootstrap.php
@@ -17,8 +17,13 @@
17
* Load required plugins
18
*/
19
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';
26
require_once dirname( dirname( __FILE__ ) ) . '/wp-graphql-jwt-authentication.php';
- require_once dirname( dirname( __FILE__, 2 ) ) . '/wp-graphql/wp-graphql.php';
27
}
28
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
29
0 commit comments