Automattic\WooCommerce\Blocks\Domain\Services
FeatureGating::is_test_environment() public WC 1.0
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 5.2.2
public function is_test_environment() {
return self::TEST_ENVIRONMENT === $this->environment;
}