Add relationship example to README

This commit is contained in:
Ingo Schommer 2014-11-11 13:31:35 +13:00
parent c6edcccb03
commit a35636f6b0
1 changed files with 2 additions and 1 deletions

View File

@ -652,7 +652,8 @@ It's based on the `vendor/bin/behat -di @cms` output.
Given /^(?:(an|a|the) )"group" "(?<id>[^"]+)" (?:(with|has)) permissions (?<permissionStr>.*)$/
- Example: Given a "group" "Admin" with permissions "Access to 'Pages' section" and "Access to 'Files' section"
# SilverStripe\Cms\Test\Behaviour\FixtureContext::stepCreateGroupWithPermissions()
Given /^I assign (?:(an|a|the) )"(?<type>[^"]+)" "(?<value>[^"]+)" to (?:(an|a|the) )"(?<relationType>[^"]+)" "(?<relationId>[^"]+)"$/
- Example: I assign the "TaxonomyTerm" "For customers" to the "Page" "Page1"
### Environment