Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
- update config
- enable graphql debug mode
  • Loading branch information
jasonbahl committed Apr 15, 2022
commit f4518357b5349b7325e8c974f5deec2cdcf1ae1a
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