Skip to content

Commit

Permalink
bug #10619 Sending email after ship shipment on grid (AdamKasp)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.6-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master 
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #10581
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.4 or 1.5 branch (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set
-->


Commits
-------

5377f71 Sending email  after ship shipment on grid
  • Loading branch information
lchrusciel committed Aug 26, 2019
2 parents 1d0a3f6 + 5377f71 commit b0c0c5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Expand Up @@ -15,9 +15,10 @@ Feature: Shipping a shipment from shipment list
And the customer chose "UPS" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator

@ui
@ui @email
Scenario: Shipping a shipment from shipments index
When I browse shipments
And I ship the shipment of order "#00000001"
Then I should be notified that the shipment has been successfully shipped
And an email with shipment's confirmation should be sent to "donald@duck.com"
And I should see the shipment of order "#00000001" as "Shipped"
1 change: 1 addition & 0 deletions src/Sylius/Behat/Context/Ui/EmailContext.php
Expand Up @@ -38,6 +38,7 @@ public function __construct(SharedStorageInterface $sharedStorage, EmailCheckerI
* @Then it should be sent to :recipient
* @Then the email with reset token should be sent to :recipient
* @Then the email with contact request should be sent to :recipient
* @Then an email with shipment's confirmation should be sent to :email
*/
public function anEmailShouldBeSentTo($recipient)
{
Expand Down
Expand Up @@ -24,6 +24,7 @@ default:
- sylius.behat.context.setup.shipping
- sylius.behat.context.setup.zone
- sylius.behat.context.ui.channel
- sylius.behat.context.ui.email

- sylius.behat.context.ui.admin.managing_shipments
- sylius.behat.context.ui.shop.cart
Expand Down
Expand Up @@ -19,6 +19,8 @@ sylius_admin_shipment_ship:
defaults:
_controller: sylius.controller.shipment:applyStateMachineTransitionAction
_sylius:
event: ship
section: admin
permission: true
state_machine:
graph: sylius_shipment
Expand Down

0 comments on commit b0c0c5c

Please sign in to comment.