at the end of the day, it was inevitable
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
Feature: Create recipient group
|
||||
As an master
|
||||
I should be able to create group of recipients
|
||||
|
||||
@db-fixtures
|
||||
Scenario:
|
||||
I try to create recipient group.
|
||||
|
||||
Given I authenticated as test@email.com with password test
|
||||
When I make POST request to /api/v1/recipients/groups
|
||||
"""
|
||||
{
|
||||
"name": "Test Group",
|
||||
"description": "some group",
|
||||
"active": true,
|
||||
"recipients": [],
|
||||
"notifications": []
|
||||
}
|
||||
"""
|
||||
Then I got successful response
|
||||
And it's contains
|
||||
"""
|
||||
@object@
|
||||
.entity('UserBundle:GroupRecipient', 'recipient, id')
|
||||
.field('name', 'Test Group')
|
||||
.field('description', 'some group')
|
||||
.field('active', true)
|
||||
.field('recipients', [])
|
||||
.field('notifications', [])
|
||||
"""
|
||||
And database has entity UserBundle:GroupRecipient
|
||||
| name | Test Group |
|
||||
| description | some group |
|
||||
| active | true |
|
||||
Reference in New Issue
Block a user