From c4406d6bbefcaa2d21c393da1af007a35ad7b0b1 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Mon, 10 May 2021 11:40:27 +0200 Subject: [PATCH] Fix typo in error message and data factory method name [MAILPOET-3226] --- lib/API/JSON/v1/DynamicSegments.php | 2 +- tests/DataFactories/DynamicSegment.php | 2 +- tests/acceptance/Segments/WooCommerceDynamicSegmentsCest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/API/JSON/v1/DynamicSegments.php b/lib/API/JSON/v1/DynamicSegments.php index c24ee7d763..ee0819844c 100644 --- a/lib/API/JSON/v1/DynamicSegments.php +++ b/lib/API/JSON/v1/DynamicSegments.php @@ -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: diff --git a/tests/DataFactories/DynamicSegment.php b/tests/DataFactories/DynamicSegment.php index 1eb394b2bc..fffa0b1bb3 100644 --- a/tests/DataFactories/DynamicSegment.php +++ b/tests/DataFactories/DynamicSegment.php @@ -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; diff --git a/tests/acceptance/Segments/WooCommerceDynamicSegmentsCest.php b/tests/acceptance/Segments/WooCommerceDynamicSegmentsCest.php index 7c59a21994..5636027a3a 100644 --- a/tests/acceptance/Segments/WooCommerceDynamicSegmentsCest.php +++ b/tests/acceptance/Segments/WooCommerceDynamicSegmentsCest.php @@ -72,7 +72,7 @@ class WooCommerceDynamicSegmentsCest { ->create(); $this->customerCountrySegment = $segmentFactory ->withName(self::CUSTOMER_IN_COUNTRY) - ->withWooCommerceCutomerCountryFilter('FR') + ->withWooCommerceCustomerCountryFilter('FR') ->create(); }