Skip to content

Commit

Permalink
OP-290: behat fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Sep 4, 2024
1 parent 1198616 commit 6646f0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion features/admin/adding_media.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/config/routing/shop/media.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 6646f0f

Please sign in to comment.