From 71c708ada09871f62ae9b40ab03d50e316424cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Kukli=C5=84ski?= Date: Thu, 26 Sep 2024 21:36:17 +0200 Subject: [PATCH] Block and media adjustments --- .../packages/fixtures/1_collection.yaml | 11 ++++- .../config/packages/fixtures/1_media.yaml | 41 +++++++++++++++++-- .../config/packages/fixtures/2_block.yaml | 39 ++++++++---------- 3 files changed, 64 insertions(+), 27 deletions(-) diff --git a/tests/Application/config/packages/fixtures/1_collection.yaml b/tests/Application/config/packages/fixtures/1_collection.yaml index 836dbc1a..94f1ab08 100644 --- a/tests/Application/config/packages/fixtures/1_collection.yaml +++ b/tests/Application/config/packages/fixtures/1_collection.yaml @@ -14,14 +14,21 @@ sylius_fixtures: blog: name: "Blog" type: "page" - page_codes: - - "lorem_ipsum" homepage: name: "Homepage" type: "page" + homepage_banner: + name: "Homepage" + type: "media" black_friday: name: "Black Friday" type: "block" + black_friday_banner: + name: "Black Friday banners" + type: "media" + blog_images: + name: "Blog images" + type: "media" products_details: name: "Product details" type: "block" diff --git a/tests/Application/config/packages/fixtures/1_media.yaml b/tests/Application/config/packages/fixtures/1_media.yaml index ed90709f..74f4f3d6 100644 --- a/tests/Application/config/packages/fixtures/1_media.yaml +++ b/tests/Application/config/packages/fixtures/1_media.yaml @@ -12,19 +12,24 @@ sylius_fixtures: options: custom: black_friday_banner: - name: "T-Shirts banner" + name: "Black friday banner" channels: - "FASHION_WEB" type: image path: "%fixtures_dir%/black_friday_banner.png" original_name: "black_friday_banner.png" + collections: + - "black_friday_banner" translations: en_US: - alt: "T-Shirts banner" + alt: "Black friday banner" homepage_banner_1: - name: "Homepage banner 1" + name: "Homepage banner 1 (black friday)" channels: - "FASHION_WEB" + collections: + - "homepage_banner" + - "black_friday_banner" type: image path: "%fixtures_dir%/homepage_banner_1.png" original_name: "homepage_banner_1.png" @@ -35,6 +40,8 @@ sylius_fixtures: name: "Homepage banner 2" channels: - "FASHION_WEB" + collections: + - "homepage_banner" type: image path: "%fixtures_dir%/homepage_banner_2.png" original_name: "homepage_banner_2.png" @@ -45,6 +52,8 @@ sylius_fixtures: name: "Homepage banner 3" channels: - "FASHION_WEB" + collections: + - "homepage_banner" type: image path: "%fixtures_dir%/homepage_banner_3.png" original_name: "homepage_banner_3.png" @@ -55,6 +64,8 @@ sylius_fixtures: name: "Blog banner" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_banner.png" original_name: "blog_banner.png" @@ -65,6 +76,8 @@ sylius_fixtures: name: "Blog post 1 banner" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_1_header_banner.png" original_name: "blog_post_1_header_banner.png" @@ -75,6 +88,8 @@ sylius_fixtures: name: "Blog post 2 banner" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_2_header_banner.png" original_name: "blog_post_2_header_banner.png" @@ -85,6 +100,8 @@ sylius_fixtures: name: "Blog post 3 banner" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_3_header_banner.png" original_name: "blog_post_3_header_banner.png" @@ -95,6 +112,8 @@ sylius_fixtures: name: "Blog post 1 teaser" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_1_teaser_image.png" original_name: "blog_post_1_teaser_image.png" @@ -105,6 +124,8 @@ sylius_fixtures: name: "Blog post 2 teaser" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_2_teaser_image.png" original_name: "blog_post_2_teaser_image.png" @@ -115,6 +136,8 @@ sylius_fixtures: name: "Blog post 3 teaser" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_3_teaser_image.png" original_name: "blog_post_3_teaser_image.png" @@ -125,6 +148,8 @@ sylius_fixtures: name: "Blog post 1 content image 1" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_1_content_image_1.png" original_name: "blog_post_1_content_image_1.png" @@ -135,6 +160,8 @@ sylius_fixtures: name: "Blog post 1 content image 2" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_1_content_image_2.png" original_name: "blog_post_1_content_image_2.png" @@ -145,6 +172,8 @@ sylius_fixtures: name: "Blog post 2 content image 1" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_2_content_image_1.png" original_name: "blog_post_2_content_image_1.png" @@ -155,6 +184,8 @@ sylius_fixtures: name: "Blog post 2 content image 2" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_2_content_image_2.png" original_name: "blog_post_2_content_image_2.png" @@ -165,6 +196,8 @@ sylius_fixtures: name: "Blog post 3 content image 1" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_3_content_image_1.png" original_name: "blog_post_3_content_image_1.png" @@ -175,6 +208,8 @@ sylius_fixtures: name: "Blog post 3 content image 2" channels: - "FASHION_WEB" + collections: + - "blog_images" type: image path: "%fixtures_dir%/blog_post_3_content_image_2.png" original_name: "blog_post_3_content_image_2.png" diff --git a/tests/Application/config/packages/fixtures/2_block.yaml b/tests/Application/config/packages/fixtures/2_block.yaml index 01cd3b4a..69b1fdf6 100644 --- a/tests/Application/config/packages/fixtures/2_block.yaml +++ b/tests/Application/config/packages/fixtures/2_block.yaml @@ -12,7 +12,7 @@ sylius_fixtures: options: custom: homepage_textarea: - name: "Homepage textarea example" + name: "Welcome in SyliusCmsPlugin!" channels: - "FASHION_WEB" collections: @@ -44,7 +44,7 @@ sylius_fixtures:

homepage_products_carousel: - name: "Homepage products carousel example" + name: "See our collection of brand new T-Shirts!" channels: - "FASHION_WEB" collections: @@ -75,13 +75,12 @@ sylius_fixtures: - "Raglan_grey_black_Tee" - "Oversize_white_cotton_T_Shirt" homepage_banner_1: - name: "Homepage single media example" + name: "Homepage banner 1" channels: - "FASHION_WEB" collections: - "homepage" - taxons: - - "t_shirts" + - "black_friday" content_elements: en_US: spacer1: @@ -97,13 +96,11 @@ sylius_fixtures: data: spacer: 20 homepage_banner_2: - name: "Homepage single media example" + name: "Homepage banner 2" channels: - "FASHION_WEB" collections: - "homepage" - taxons: - - "t_shirts" content_elements: en_US: single_media: @@ -111,13 +108,11 @@ sylius_fixtures: data: single_media: "homepage_banner_2" homepage_banner_3: - name: "Homepage single media example" + name: "Homepage banner 3" channels: - "FASHION_WEB" collections: - "homepage" - taxons: - - "t_shirts" content_elements: en_US: single_media: @@ -129,7 +124,7 @@ sylius_fixtures: data: spacer: 10 homepage_products_carousel_by_taxon: - name: "Homepage products carousel by taxon example" + name: "How about jeans?" channels: - "FASHION_WEB" collections: @@ -170,7 +165,7 @@ sylius_fixtures: data: products_carousel_by_taxon: "jeans" homepage_products_grid: - name: "Homepage products grid example" + name: "Meet our caps brand" channels: - "FASHION_WEB" collections: @@ -199,7 +194,7 @@ sylius_fixtures: - "Knitted_white_pompom_cap" - "Cashmere_blend_violet_beanie" homepage_products_grid_by_taxon: - name: "Homepage products grid by taxon example" + name: "See also our dress collection!" channels: - "FASHION_WEB" collections: @@ -236,7 +231,7 @@ sylius_fixtures: data: products_grid_by_taxon: "dresses" homepage_taxons_list: - name: "Homepage taxons list example" + name: "Not interested in caps? See all our brands" channels: - "FASHION_WEB" collections: @@ -265,7 +260,7 @@ sylius_fixtures: - "dresses" - "jeans" black_friday_banner_taxon: - name: "Taxon single media example" + name: "Black friday banner (taxons)" channels: - "FASHION_WEB" collections: @@ -281,15 +276,14 @@ sylius_fixtures: data: single_media: "black_friday_banner" black_friday_banner_product: - name: "Product single media example" + name: "Black friday banner (products)" channels: - "FASHION_WEB" collections: - "black_friday" - products: - - "Everyday_white_basic_T_Shirt" - - "Loose_white_designer_T_Shirt" - - "Ribbed_copper_slim_fit_Tee" + products_in_taxons: + - "mens_t_shirts" + - "womens_t_shirts" content_elements: en_US: single_media: @@ -301,12 +295,13 @@ sylius_fixtures: data: spacer: 20 specified_products_in_taxons: - name: "Product details products carousel by taxon example" + name: "You may also like" channels: - "FASHION_WEB" collections: - "products_details" products_in_taxons: + - "mens_t_shirts" - "womens_t_shirts" content_elements: en_US: