mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Add relationship example to README
This commit is contained in:
parent
c6edcccb03
commit
a35636f6b0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user