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

Added account verification option to fixture parser #9616

Merged
merged 3 commits into from
Jul 26, 2018
Merged

Added account verification option to fixture parser #9616

merged 3 commits into from
Jul 26, 2018

Conversation

mamazu
Copy link
Member

@mamazu mamazu commented Jul 25, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets none
License MIT

In this pull request the switch for account verification in the channel entity is now configurable in the Sylius fixtures.

@@ -40,7 +40,7 @@ protected function configureResourceNode(ArrayNodeDefinition $resourceNode): voi
->scalarNode('tax_calculation_strategy')->end()
->booleanNode('enabled')->end()
->booleanNode('skipping_shipping_step_allowed')->end()
->booleanNode('skipping_payment_step_allowed')->end()
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing skipping_payment_step_allowed looks wrong, did you do it by mistake?

@@ -41,6 +41,7 @@ protected function configureResourceNode(ArrayNodeDefinition $resourceNode): voi
->booleanNode('enabled')->end()
->booleanNode('skipping_shipping_step_allowed')->end()
->booleanNode('skipping_payment_step_allowed')->end()
->booleanNode('account_verification_required')->defaultTrue()->end()
Copy link
Contributor

Choose a reason for hiding this comment

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

We handle the default values in OptionsResolver in the example factory, could you remove ->defaultTrue() here and customise configureOptions method in ChannelExampleFactory?

@pamil pamil added the Feature New feature proposals. label Jul 26, 2018
@pamil pamil merged commit 4f6fb4d into Sylius:master Jul 26, 2018
@pamil
Copy link
Contributor

pamil commented Jul 26, 2018

Thank you, @mamazu! 🎉

@mamazu
Copy link
Member Author

mamazu commented Jul 26, 2018

Well, we need it for our shop, but you are welcome. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants