Automattic\WooCommerce\Blocks\Domain\Services
FeatureGating::is_test_environment()
Checks if we're executing the code in a test environment.
Method of the class: FeatureGating{}
No Hooks.
Return
true|false
.
Usage
$FeatureGating = new FeatureGating(); $FeatureGating->is_test_environment();
FeatureGating::is_test_environment() FeatureGating::is test environment code WC 8.6.1
public function is_test_environment() { return self::TEST_ENVIRONMENT === $this->environment; }