Skip to content

Commit f451835

Browse files
committed
- update config
- enable graphql debug mode
1 parent 2736333 commit f451835

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/_data/config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
define( 'GRAPHQL_JWT_AUTH_SECRET_KEY', 'test-token' );
2+
define( 'GRAPHQL_DEBUG', true );
3+
define( 'WPGRAPHQL_AUTOLOAD', false );
4+
define( 'WP_AUTO_UPDATE_CORE', false );
5+
define( 'AUTOMATIC_UPDATER_DISABLED', true );

tests/wpunit/AuthenticationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function setUp(): void {
2121

2222
$_SERVER['HTTP_AUTHORIZATION'] = 'Bearer goo';
2323

24+
add_filter( 'graphql_debug_enabled', '__return_true' );
2425
add_filter( 'graphql_jwt_auth_secret_key', function() {
2526
return 'your-secret-token';
2627
});

0 commit comments

Comments
 (0)