From 6646f0ff115a0a95bc27d92a38a00e032a0501fc Mon Sep 17 00:00:00 2001 From: jkindly Date: Wed, 4 Sep 2024 13:21:48 +0200 Subject: [PATCH] OP-290: behat fixes --- features/admin/adding_media.feature | 1 - src/Resources/config/routing/shop/media.yml | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/features/admin/adding_media.feature b/features/admin/adding_media.feature index d5463584..0ee4fe3c 100644 --- a/features/admin/adding_media.feature +++ b/features/admin/adding_media.feature @@ -13,7 +13,6 @@ Feature: Adding new media When I go to the create media page And I fill the code with "image" And I fill the name with "Image" - And I fill the link content with "Main image" And I upload the "aston_martin_db_11.jpg" image And I add it Then I should be notified that new media has been created diff --git a/src/Resources/config/routing/shop/media.yml b/src/Resources/config/routing/shop/media.yml index 18048854..6f1791f3 100755 --- a/src/Resources/config/routing/shop/media.yml +++ b/src/Resources/config/routing/shop/media.yml @@ -1,17 +1,17 @@ -sylius_cms_plugin_shop_media_render: +sylius_cms_shop_media_render: path: /media/{code} methods: [GET] defaults: _controller: sylius_cms_plugin.controller.media.overriden::renderMediaAction -sylius_cms_plugin_shop_media_download: +sylius_cms_shop_media_download: path: /media/download/{code} methods: [GET] defaults: _controller: sylius_cms_plugin.controller.media.overriden::downloadMediaAction disposition: !php/const Symfony\Component\HttpFoundation\ResponseHeaderBag::DISPOSITION_ATTACHMENT -sylius_cms_plugin_shop_media_inline: +sylius_cms_shop_media_inline: path: /media/inline/{code} methods: [GET] defaults: