Skip to content

Instantly share code, notes, and snippets.

@ismail1432
Created March 26, 2021 10:56
Show Gist options
  • Save ismail1432/f02a6169a1a535fef2cf89de10fb3a82 to your computer and use it in GitHub Desktop.
Save ismail1432/f02a6169a1a535fef2cf89de10fb3a82 to your computer and use it in GitHub Desktop.
Scenario: Export a csv email
Given I publish in client_export messenger queue the following message:
| App\\Message\ExportMessage | {"emailTo":"[email protected]"} |
Then I consume 1 messages in user_export messenger queue
Then the user_export messenger queue should be empty
And 1 mail should be sent
And I open mail with subject "Your export file is ready"
And I should see "Your export file is ready, you can download it by clicking on this link : https://domain.docker.com/export_files/export_user" in mail
And the Excel file with glob "var/upload/async_export/*.xlsx" should contain:
| A1 | Fixture A ID |
| A2 | 1 |
| B1 | Fixture name |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment