Fix typo in error message and data factory method name

[MAILPOET-3226]
This commit is contained in:
Rostislav Wolny
2021-05-10 11:40:27 +02:00
committed by Veljko V
parent 44373b9bd9
commit c4406d6bbe
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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;

View File

@ -72,7 +72,7 @@ class WooCommerceDynamicSegmentsCest {
->create();
$this->customerCountrySegment = $segmentFactory
->withName(self::CUSTOMER_IN_COUNTRY)
->withWooCommerceCutomerCountryFilter('FR')
->withWooCommerceCustomerCountryFilter('FR')
->create();
}