From bf7df9696f6ccc6093d15109c906567e65cef7ac Mon Sep 17 00:00:00 2001 From: Krzysztof Boduch Date: Fri, 25 Jan 2019 00:26:02 +0100 Subject: [PATCH] [Product Review] fixed review validation when edited by admin --- .../editing_product_review.feature | 2 +- .../AdminBundle/Resources/config/services.xml | 1 + .../Resources/config/services/form.xml | 20 +++++++++++++++++++ .../Resources/config/validation/Review.xml | 2 +- 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/Sylius/Bundle/AdminBundle/Resources/config/services/form.xml diff --git a/features/product/managing_product_reviews/editing_product_review.feature b/features/product/managing_product_reviews/editing_product_review.feature index 20078dbf556..2e1750433d0 100644 --- a/features/product/managing_product_reviews/editing_product_review.feature +++ b/features/product/managing_product_reviews/editing_product_review.feature @@ -5,7 +5,7 @@ Feature: Editing product reviews I want to edit a product review Background: - Given the store has customer "Mike Ross" with email "ross@teammike.com" + Given there is a customer "Mike Ross" with an email "ross@teammike.com" and a password "thePassword" And the store has a product "Lamborghini Gallardo Model" And this product has a review titled "Awesome" and rated 4 with a comment "Nice product" added by customer "ross@teammike.com" And I am logged in as an administrator diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/services.xml b/src/Sylius/Bundle/AdminBundle/Resources/config/services.xml index a0e6361053f..19443adfb25 100644 --- a/src/Sylius/Bundle/AdminBundle/Resources/config/services.xml +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/services.xml @@ -17,6 +17,7 @@ + diff --git a/src/Sylius/Bundle/AdminBundle/Resources/config/services/form.xml b/src/Sylius/Bundle/AdminBundle/Resources/config/services/form.xml new file mode 100644 index 00000000000..81552c6574b --- /dev/null +++ b/src/Sylius/Bundle/AdminBundle/Resources/config/services/form.xml @@ -0,0 +1,20 @@ + + + + + + + + sylius + + + diff --git a/src/Sylius/Bundle/ReviewBundle/Resources/config/validation/Review.xml b/src/Sylius/Bundle/ReviewBundle/Resources/config/validation/Review.xml index d608b56dc3a..f5550038c04 100644 --- a/src/Sylius/Bundle/ReviewBundle/Resources/config/validation/Review.xml +++ b/src/Sylius/Bundle/ReviewBundle/Resources/config/validation/Review.xml @@ -17,7 +17,7 @@