Automattic\WooCommerce\Blocks\Domain\Services
FeatureGating::is_test_environment()
Checks if we're executing the code in a test environment.
Метод класса: FeatureGating{}
Хуков нет.
Возвращает
true|false
.
Использование
$FeatureGating = new FeatureGating(); $FeatureGating->is_test_environment();
Код FeatureGating::is_test_environment() FeatureGating::is test environment WC 7.5.0
public function is_test_environment() { return self::TEST_ENVIRONMENT === $this->environment; }