Skip to content

Commit

Permalink
- update config
Browse files Browse the repository at this point in the history
- enable graphql debug mode
  • Loading branch information
jasonbahl committed Apr 15, 2022
1 parent 2736333 commit f451835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/_data/config.php
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
define( 'GRAPHQL_JWT_AUTH_SECRET_KEY', 'test-token' );
define( 'GRAPHQL_DEBUG', true );
define( 'WPGRAPHQL_AUTOLOAD', false );
define( 'WP_AUTO_UPDATE_CORE', false );
define( 'AUTOMATIC_UPDATER_DISABLED', true );
1 change: 1 addition & 0 deletions tests/wpunit/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function setUp(): void {

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

add_filter( 'graphql_debug_enabled', '__return_true' );
add_filter( 'graphql_jwt_auth_secret_key', function() {
return 'your-secret-token';
});
Expand Down

0 comments on commit f451835

Please sign in to comment.