Fix typo in error message and data factory method name
[MAILPOET-3226]
This commit is contained in:
committed by
Veljko V
parent
44373b9bd9
commit
c4406d6bbe
@ -134,7 +134,7 @@ class DynamicSegments extends APIEndpoint {
|
||||
case InvalidFilterException::MISSING_PRODUCT_ID:
|
||||
return WPFunctions::get()->__('Please select product.', 'mailpoet');
|
||||
case InvalidFilterException::MISSING_COUNTRY:
|
||||
return WPFunctions::get()->__('Please country.', 'mailpoet');
|
||||
return WPFunctions::get()->__('Please select country.', 'mailpoet');
|
||||
case InvalidFilterException::MISSING_CATEGORY_ID:
|
||||
return WPFunctions::get()->__('Please select category.', 'mailpoet');
|
||||
case InvalidFilterException::MISSING_VALUE:
|
||||
|
@ -56,7 +56,7 @@ class DynamicSegment extends Segment {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function withWooCommerceCutomerCountryFilter(string $countryCode = 'FR') {
|
||||
public function withWooCommerceCustomerCountryFilter(string $countryCode = 'FR') {
|
||||
$this->filterData['segmentType'] = 'woocommerce';
|
||||
$this->filterData['action'] = 'customerInCountry';
|
||||
$this->filterData['country_code'] = $countryCode;
|
||||
|
@ -72,7 +72,7 @@ class WooCommerceDynamicSegmentsCest {
|
||||
->create();
|
||||
$this->customerCountrySegment = $segmentFactory
|
||||
->withName(self::CUSTOMER_IN_COUNTRY)
|
||||
->withWooCommerceCutomerCountryFilter('FR')
|
||||
->withWooCommerceCustomerCountryFilter('FR')
|
||||
->create();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user