at the end of the day, it was inevitable

This commit is contained in:
Mo Elzubeir
2022-12-09 08:36:26 -06:00
commit 1218570914
1768 changed files with 887087 additions and 0 deletions
@@ -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 |
@@ -0,0 +1,36 @@
Feature: Create recipient
As an master
I must be able to create new person recipient
@db-fixtures
Scenario:
I try to create new recipient.
Given I authenticated as test@email.com with password test
When I make POST request to /api/v1/recipients
"""
{
"firstName": "Test",
"lastName": "User",
"email": "test.user@email.com",
"active": true,
"notifications": [],
"groups": []
}
"""
Then I got successful response
And it's contains
"""
@object@
.entity('UserBundle:PersonRecipient', 'recipient, id')
.field('firstName', 'Test')
.field('lastName', 'User')
.field('email', 'test.user@email.com')
.field('active', true)
.field('groups', [])
"""
And database has entity UserBundle:PersonRecipient
| firstName | Test |
| lastName | User |
| email | test.user@email.com |
| active | true |