Skip to content

Commit

Permalink
Moved fixtures to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKasp committed Jul 24, 2019
1 parent 46b4591 commit a683987
Show file tree
Hide file tree
Showing 7 changed files with 876 additions and 836 deletions.
843 changes: 7 additions & 836 deletions src/Sylius/Bundle/CoreBundle/Resources/config/app/fixtures.yml

Large diffs are not rendered by default.

155 changes: 155 additions & 0 deletions src/Sylius/Bundle/CoreBundle/Resources/config/app/fixtures/cap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_fixtures:
suites:
default:
fixtures:
cap_taxon:
name: taxon
options:
custom:
category:
code: 'category'
name: 'Category'
translations:
en_US:
name: 'Category'
fr_FR:
name: 'Categorie'
children:
- code: 'caps'
name: 'Caps'
slug: 'caps'
translations:
en_US:
name: 'Caps'
fr_FR:
name: 'Casquestte'
children:
- code: 'simple_caps'
translations:
en_US:
name: 'Simple'
slug: 'caps/simple'
fr_FR:
name: 'simple'
slug: 'casquette/simple'

- code: 'caps_with_pompons'
translations:
en_US:
name: 'With pompons'
slug: 'caps/with-pompons'
fr_FR:
name: 'A pompon'
slug: 'casquette/a-pompon'

cap_attribute:
name: product_attribute
options:
custom:
- name: 'Cap brand'
code: 'cap_brand'
type: 'text'

- name: 'Cap collection'
code: 'cap_collection'
type: 'text'

- name: 'Cap material'
code: 'cap_material'
type: 'text'

cap_option:
name: product_option
options:
custom:
- name: 'Cap size'
code: 'cap_size'
values:
cap_size_s: 'S'
cap_size_m: 'M'
cap_size_l: 'L'
cap_size_xl: 'XL'
cap_size_xxl: 'XXL'

- name: 'Cap color'
code: 'cap_color'
values:
cap_color_red: 'Red'
cap_color_black: 'Black'
cap_color_white: 'White'

cap_product:
name: product
options:
custom:
- name: 'Basic winter hot cap'
tax_category: 'other'
channels:
- 'FASHION_WEB'
main_taxon: 'caps_with_pompons'
taxons:
- 'caps'
- 'caps_with_pompons'
product_attributes:
cap_brand: 'You are breathtaking'
cap_collection: 'Sylius Winter 2019'
cap_material: '100% wool'
product_options:
- 'cap_color'
- 'cap_size'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_01.jpg', type: 'main' }

- name: 'Beautiful cap for woman'
tax_category: 'other'
channels:
- 'FASHION_WEB'
main_taxon: 'simple_caps'
taxons:
- 'caps'
- 'simple_caps'
product_attributes:
cap_brand: 'Modern Wear'
cap_collection: 'Sylius Winter 2019'
cap_material: '100% wool'
product_options:
- 'cap_color'
- 'cap_size'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_02.jpg', type: 'main' }

- name: 'Regular cap with big pompon'
tax_category: 'other'
channels:
- 'FASHION_WEB'
main_taxon: 'caps_with_pompons'
taxons:
- 'caps'
- 'caps_with_pompons'
product_attributes:
cap_brand: 'Celsius Small'
cap_collection: 'Sylius Winter 2019'
cap_material: '100% wool'
product_options:
- 'cap_color'
- 'cap_size'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_03.jpg', type: 'main' }

- name: 'Simple cap'
main_taxon: 'simple_caps'
taxons:
- 'caps'
- 'simple_caps'
product_attributes:
cap_brand: 'Date & Banana'
cap_collection: 'Sylius Winter 2019'
cap_material: '100% wool'
product_options:
- 'cap_color'
- 'cap_size'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_04.jpg', type: 'main' }
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_fixtures:
suites:
default:
fixtures:
product_review:
options:
random: 40

similar_product_association:
options:
amount: 3

order:
options:
amount: 20

address:
options:
random: 10
prototype:
country_code: US
117 changes: 117 additions & 0 deletions src/Sylius/Bundle/CoreBundle/Resources/config/app/fixtures/dress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_fixtures:
suites:
default:
fixtures:
dress_taxon:
name: taxon
options:
custom:
category:
code: 'category'
name: 'Category'
translations:
en_US:
name: 'Category'
fr_FR:
name: 'Categorie'
children:
- code: 'dresses'
translations:
en_US:
name: 'Dresses'
fr_FR:
name: 'Robes'

dress_attribute:
name: product_attribute
options:
custom:
- name: 'Dress brand'
code: 'dress_brand'
type: 'text'

- name: 'Dress collection'
code: 'dress_collection'
type: 'text'

- name: 'Dress material'
code: 'dress_material'
type: 'text'

dress_option:
name: product_option
options:
custom:
- name: 'Dress size'
code: 'dress_size'
values:
dress_s: 'S'
dress_m: 'M'
dress_l: 'L'
dress_xl: 'XL'
dress_xxl: 'XXL'

- name: 'Dress height'
code: 'dress_height'
values:
dress_height_petite: 'Petite'
dress_height_regular: 'Regular'
dress_height_tall: 'Tall'

dress_product:
name: product
options:
custom:
- name: 'Circle-skirt Dress'
tax_category: 'clothing'
channels:
- 'FASHION_WEB'
main_taxon: 'dresses'
taxons:
- 'dresses'
product_attributes:
dress_brand: 'You are breathtaking'
dress_collection: 'Sylius Winter 2019'
dress_material: '100% polyester'
product_options:
- 'dress_size'
- 'dress_height'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/dresses/dress_01.jpg', type: 'main' }

- name: 'Sleeveless Dress'
tax_category: 'clothing'
channels:
- 'FASHION_WEB'
main_taxon: 'dresses'
taxons:
- 'dresses'
product_attributes:
dress_brand: 'You are breathtaking'
dress_collection: 'Sylius Summer 2019'
dress_material: '100% wool'
product_options:
- 'dress_size'
- 'dress_height'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/dresses/dress_02.jpg', type: 'main' }

- name: 'Summer tunic'
tax_category: 'clothing'
channels:
- 'FASHION_WEB'
main_taxon: 'dresses'
taxons:
- 'dresses'
product_attributes:
dress_brand: 'You are breathtaking'
dress_collection: 'Sylius Winter 2019'
dress_material: '100% '
product_options:
- 'dress_size'
- 'dress_height'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/dresses/dress_03.jpg', type: 'main' }
Loading

0 comments on commit a683987

Please sign in to comment.