WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Domain\Services

FeatureGating::is_test_environment() public WC 1.0

Checks if we're executing the code in a test environment.

{} It's a method of the class: FeatureGating{}

No Hooks.

Return

true|false.

Usage

$FeatureGating = new FeatureGating();
$FeatureGating->is_test_environment();

Code of FeatureGating::is_test_environment() WC 5.9.0

public function is_test_environment() {
	return self::TEST_ENVIRONMENT === $this->environment;
}