2019-04-06 17:42:16 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Disable autoloading while running tests, as the test
|
|
|
|
|
* suite already bootstraps the autoloader and creates
|
|
|
|
|
* fatal errors when the autoloader is loaded twice
|
|
|
|
|
*/
|
2020-04-08 16:35:03 -04:00
|
|
|
if ( ! defined( 'GRAPHQL_DEBUG' ) ) {
|
|
|
|
|
define( 'GRAPHQL_DEBUG', true );
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-16 14:56:52 -04:00
|
|
|
if ( ! defined( 'WPGRAPHQL_WOOCOMMERCE_AUTOLOAD' ) && false !== getenv( 'WPGRAPHQL_WOOCOMMERCE_AUTOLOAD' ) ) {
|
2020-04-08 16:35:03 -04:00
|
|
|
define( 'WPGRAPHQL_WOOCOMMERCE_AUTOLOAD', getenv( 'WPGRAPHQL_WOOCOMMERCE_AUTOLOAD' ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( ! defined( 'GRAPHQL_JWT_AUTH_SECRET_KEY' ) ) {
|
|
|
|
|
define( 'GRAPHQL_JWT_AUTH_SECRET_KEY', 'testingtesting123' );
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-16 14:56:52 -04:00
|
|
|
if ( ! defined( 'STRIPE_API_PUBLISHABLE_KEY' ) && false !== getenv( 'STRIPE_API_PUBLISHABLE_KEY' ) ) {
|
2020-04-08 16:35:03 -04:00
|
|
|
define( 'STRIPE_API_PUBLISHABLE_KEY', getenv( 'STRIPE_API_PUBLISHABLE_KEY' ) );
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-16 14:56:52 -04:00
|
|
|
if ( ! defined( 'STRIPE_API_SECRET_KEY' ) && false !== getenv( 'STRIPE_API_SECRET_KEY' ) ) {
|
2020-04-08 16:35:03 -04:00
|
|
|
define( 'STRIPE_API_SECRET_KEY', getenv( 'STRIPE_API_SECRET_KEY' ) );
|
2020-05-11 21:36:24 -04:00
|
|
|
}
|
2020-04-03 21:40:17 -04:00
|
|
|
|