Skip to content

Commit

Permalink
Add fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Apr 15, 2024
1 parent 37d0101 commit 7aa02f1
Show file tree
Hide file tree
Showing 7 changed files with 1,073 additions and 0 deletions.
137 changes: 137 additions & 0 deletions tests/Application/config/fixtures/cap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
sylius_fixtures:
suites:
elasticsearch:
fixtures:
cap_taxon:
name: taxon
options:
custom:
category:
code: 'MENU_CATEGORY'
name: 'Category'
translations:
en_US:
name: 'Category'
it_IT:
name: 'Categoria'
children:
-
code: 'caps'
name: 'Caps'
slug: 'caps'
translations:
en_US:
name: 'Caps'
it_IT:
name: 'Cappelli'
children:
-
code: 'simple_caps'
translations:
en_US:
name: 'Simple'
slug: 'caps/simple'
it_IT:
name: 'Semplice'
slug: 'cappelli/semplice'

-
code: 'caps_with_pompons'
translations:
en_US:
name: 'With pompons'
slug: 'caps/with-pompons'
it_IT:
name: 'Con pon pon'
slug: 'bonnets/con-pon-pon'

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_product:
name: product
options:
custom:
-
name: 'Knitted burgundy winter cap'
tax_category: 'other'
channels:
- 'US_STORE'
- 'IT_STORE'
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'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_01.jpg', type: 'main' }

-
name: 'Knitted wool-blend green cap'
tax_category: 'other'
channels:
- 'US_STORE'
- 'IT_STORE'
main_taxon: 'simple_caps'
taxons:
- 'caps'
- 'simple_caps'
product_attributes:
cap_brand: 'Modern Wear'
cap_collection: 'Sylius Winter 2019'
cap_material: '100% wool'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_02.jpg', type: 'main' }

-
name: 'Knitted white pompom cap'
tax_category: 'other'
channels:
- 'US_STORE'
- 'IT_STORE'
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'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_03.jpg', type: 'main' }

-
name: 'Cashmere-blend violet beanie'
tax_category: 'other'
channels:
- 'US_STORE'
- 'IT_STORE'
main_taxon: 'simple_caps'
taxons:
- 'caps'
- 'simple_caps'
product_attributes:
cap_brand: 'Date & Banana'
cap_collection: 'Sylius Winter 2019'
cap_material: '100% cashmere'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/caps/cap_04.jpg', type: 'main' }
133 changes: 133 additions & 0 deletions tests/Application/config/fixtures/dress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
sylius_fixtures:
suites:
elasticsearch:
fixtures:
dress_taxon:
name: taxon
options:
custom:
category:
code: 'MENU_CATEGORY'
name: 'Category'
translations:
en_US:
name: 'Category'
it_IT:
name: 'Categoria'
children:
-
code: 'dresses'
translations:
en_US:
name: 'Dresses'
it_IT:
name: 'Vestiti'

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'

-
name: 'Length'
code: 'length'
type: 'integer'
translatable: false

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: 'Beige strappy summer dress'
tax_category: 'clothing'
channels:
- 'IT_STORE'
- 'US_STORE'
main_taxon: 'dresses'
taxons:
- 'dresses'
product_attributes:
dress_brand: 'You are breathtaking'
dress_collection: 'Sylius Summer 2019'
dress_material: '100% polyester'
product_options:
- 'dress_size'
- 'dress_height'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/dresses/dress_01.jpg', type: 'main' }

-
name: 'Off shoulder boho dress'
tax_category: 'clothing'
channels:
- 'IT_STORE'
- 'US_STORE'
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: 'Ruffle wrap festival dress'
tax_category: 'clothing'
channels:
- 'IT_STORE'
- 'US_STORE'
main_taxon: 'dresses'
taxons:
- 'dresses'
product_attributes:
dress_brand: 'You are breathtaking'
dress_collection: 'Sylius Summer 2019'
dress_material: '100% polyester'
length: 100
product_options:
- 'dress_size'
- 'dress_height'
images:
- { path: '@SyliusCoreBundle/Resources/fixtures/dresses/dress_03.jpg', type: 'main' }
Loading

0 comments on commit 7aa02f1

Please sign in to comment.