A Drip email marketing module for Codeception.
You need to add the repository into your composer.json file
composer require --dev polevaultweb/codeception-drip
You can use this module as any other Codeception module, by adding 'Drip' to the enabled modules in your Codeception suite configurations.
modules:
enabled:
- Drip
config:
Drip:
api_key: '%DRIP_API_KEY%'
account_id: '%DRIP_ACCOUNT_ID%'
Update Codeception build
codecept build
- getActiveCampaignsForSubscriber
- deleteSubscriber
And assertions
- seeCustomFieldForSubscriber
- seeTagsForSubscriber
- cantSeeTagsForSubscriber
- seeCampaignsForSubscriber
- cantSeeCampaignsForSubscriber
- waitForSubscriberToNotHaveTags
$I = new AcceptanceTester( $scenario );
$I->seeTagsForSubscriber( '[email protected]', array( 'customer', 'product-x' ) );
$I->seeCampaignsForSubscriber( '[email protected]', array( 12345, 67890 ) );