-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathChannelFixture.php
More file actions
59 lines (53 loc) · 2.17 KB
/
Copy pathChannelFixture.php
File metadata and controls
59 lines (53 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Fixture;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
class ChannelFixture extends AbstractResourceFixture
{
public function getName(): string
{
return 'channel';
}
protected function configureResourceNode(ArrayNodeDefinition $resourceNode): void
{
$resourceNode
->children()
->scalarNode('name')->cannotBeEmpty()->end()
->scalarNode('code')->cannotBeEmpty()->end()
->scalarNode('hostname')->end()
->scalarNode('color')->cannotBeEmpty()->end()
->scalarNode('default_tax_zone')->end()
->scalarNode('tax_calculation_strategy')->end()
->booleanNode('enabled')->end()
->booleanNode('skipping_shipping_step_allowed')->end()
->booleanNode('skipping_payment_step_allowed')->end()
->booleanNode('account_verification_required')->end()
->scalarNode('default_locale')->cannotBeEmpty()->end()
->arrayNode('locales')->scalarPrototype()->end()->end()
->scalarNode('base_currency')->cannotBeEmpty()->end()
->arrayNode('currencies')->scalarPrototype()->end()->end()
->scalarNode('theme_name')->end()
->scalarNode('contact_email')->end()
->scalarNode('contact_phone_number')->end()
->arrayNode('shop_billing_data')
->children()
->scalarNode('company')->end()
->scalarNode('tax_id')->end()
->scalarNode('country_code')->end()
->scalarNode('street')->end()
->scalarNode('city')->end()
->scalarNode('postcode')->end()
->end()
->end()
->scalarNode('menu_taxon')->end()
;
}
}