Sylius/Sylius — pull request #1128 by stloyd (2014-02-27 10:37:58+00:00)
Title: [PromotionsBundle][WIP] Add new promotion rule that order contains selected item

> __Note__: This is `WIP`, specs, tranlations, behat features will come =)

With this checker you can set promotion i.e.:
```feature
Background:
Given I am logged in as user "klaus@example.com"
And the following countries exist:
| name |
| Poland |
And the following products exist:
| name | price |
| Woody | 15 |
And the following promotions exist:
| name | description |
| Woody T-Shirt | Discount for Woody T-Shirt |
And promotion "Woody T-Shirt" has following rules defined:
| type | configuration |
| Contain item | Variant: 1,Only: true |
And promotion "Woody T-Shirt" has following actions defined:
| type | configuration |
| Fixed discount | Amount: 5 |

Scenario: Contain item promotion is applied when the cart
has required item
Given I am on the store homepage
When I add product "Woody T-Shirt" to cart, with quantity "1"
Then I should be on the cart summary page
And "Promotion total: -€5.00" should appear on the page
And "Grand total: €10.00" should appear on the page
```