Skip to content

Commit

Permalink
Moved defaults to the Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed Jul 26, 2018
1 parent 1e66689 commit 3d94f12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sylius/Bundle/CoreBundle/Fixture/ChannelFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +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()
->booleanNode('account_verification_required')->end()
->scalarNode('default_locale')->cannotBeEmpty()->end()
->arrayNode('locales')->scalarPrototype()->end()->end()
->scalarNode('base_currency')->cannotBeEmpty()->end()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ protected function configureOptions(OptionsResolver $resolver): void
->setAllowedTypes('skipping_shipping_step_allowed', 'bool')
->setDefault('skipping_payment_step_allowed', false)
->setAllowedTypes('skipping_payment_step_allowed', 'bool')
->setDefault('account_verification_required', true)
->setAllowedTypes('account_verification_required', 'bool')
->setDefault('default_tax_zone', LazyOption::randomOne($this->zoneRepository))
->setAllowedTypes('default_tax_zone', ['null', 'string', ZoneInterface::class])
->setNormalizer('default_tax_zone', LazyOption::findOneBy($this->zoneRepository, 'code'))
Expand Down

0 comments on commit 3d94f12

Please sign in to comment.