Files
wp-graphql-woocommerce/tests/wpunit/bootstrap.php
T
Geoffrey K TaylorandGitHub d70443ddcd fix: QLSessionHandler behaviour changes and QLSessionHandlerTest wpunit test added (#616)
* chore: QLSessionHandlerTest added

* chore: WPCS compliance met

* fix: JWT leeway set in unit test

* fix: Docker environment salts updated

* fix: salts restored

* chore: WPCS compliance met

* chore: JWT::leeway removed from tests

* devops: Uncommented assertion in QLSessionHandlerTest

* chore: WPCS compliance met
2022-03-15 14:39:36 -04:00

14 lines
228 B
PHP

<?php
// Turn off "QL_SESSION_HANDLER" for unit tests.
//define( 'NO_QL_SESSION_HANDLER', true );
add_filter(
'graphql_request_results',
function( $response ) {
unset( $response['extensions'] );
return $response;
}
);