Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
Given there is a customer "Mike Ross" with an email "[email protected]" 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 "[email protected]"
And I am logged in as an administrator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<import resource="services/email.xml" />
<import resource="services/listener.xml" />
<import resource="services/menu.xml" />
<import resource="services/form.xml" />
</imports>

<services>
Expand Down
20 changes: 20 additions & 0 deletions src/Sylius/Bundle/AdminBundle/Resources/config/services/form.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--

This file is part of the Sylius package.

(c) Paweł Jędrzejewski

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

-->

<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="sylius.form.type.product_review.validation_groups" type="collection">
<parameter>sylius</parameter>
</parameter>
</parameters>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<constraint name="NotBlank">
<option name="message">sylius.review.title.not_blank</option>
<option name="groups">
<value>sylius_review</value>
<value>sylius</value>
</option>
</constraint>
<constraint name="Length">
Expand Down