Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix] ShippingCountryRuleChecker, Use the country configuration as a code, instead of it's id #5332

Conversation

koemeet
Copy link
Contributor

@koemeet koemeet commented Jun 23, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related tickets fixes #X, partially #Y, mentioned in #Z
License MIT

This promotion rule is currently broken and ignored when used.

@koemeet koemeet changed the title [Bug Fix] Use the country configuration as a code, instead of it's id [Bug Fix] ShippingCountryRuleChecker, Use the country configuration as a code, instead of it's id Jun 23, 2016
@@ -56,9 +56,8 @@ function it_should_recognize_subject_as_not_eligible_if_country_does_not_match(
$subject->getShippingAddress()->willReturn($address);

$countryRepository->findOneBy(['code' => 'IE'])->willReturn($country);
$country->getId()->willReturn(2);
Copy link
Member

@Zales0123 Zales0123 Jun 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be replaced by $country->getCode()->willReturn...

Copy link
Contributor Author

@koemeet koemeet Jun 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zales0123 Could you confirm?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, didn't notice that 👍 😄

@peteward
Copy link

I just spotted this in promotions this morning, good job for fixing 👍

@koemeet koemeet force-pushed the bugfix/promotion-rule-shipping-country-code-fix branch from dd619f2 to c062c94 Compare September 9, 2016 15:58
@koemeet
Copy link
Contributor Author

koemeet commented Sep 10, 2016

This one is rebased on latest master and ready too.

@michalmarcinkowski michalmarcinkowski merged commit 74d328e into Sylius:master Sep 14, 2016
@michalmarcinkowski
Copy link
Contributor

Thanks!

@koemeet koemeet deleted the bugfix/promotion-rule-shipping-country-code-fix branch September 14, 2016 21:46
@koemeet koemeet restored the bugfix/promotion-rule-shipping-country-code-fix branch September 16, 2016 13:54
@koemeet koemeet deleted the bugfix/promotion-rule-shipping-country-code-fix branch September 16, 2016 13:55
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…-shipping-country-code-fix

[Bug Fix] ShippingCountryRuleChecker, Use the country configuration as a code, instead of it's id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants