polevaultweb / codeception-drip
Drip module for Codeception
Installs: 3 332
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
- codeception/codeception: *
- dripemail/drip-php: *
- polevaultweb/codeception-emailmarketing: ^1.0
This package is auto-updated.
Last update: 2024-11-29 06:02:55 UTC
README
A Drip email marketing module for Codeception.
Installation
You need to add the repository into your composer.json file
composer require --dev polevaultweb/codeception-drip
Usage
You can use this module as any other Codeception module, by adding 'Drip' to the enabled modules in your Codeception suite configurations.
Add Drip to your list of modules
modules: enabled: - Drip
Setup the configuration variables
config: Drip: api_key: '%DRIP_API_KEY%' account_id: '%DRIP_ACCOUNT_ID%'
Update Codeception build
codecept build
Supports
- getActiveCampaignsForSubscriber
- deleteSubscriber
And assertions
- seeCustomFieldForSubscriber
- seeTagsForSubscriber
- cantSeeTagsForSubscriber
- seeCampaignsForSubscriber
- cantSeeCampaignsForSubscriber
- waitForSubscriberToNotHaveTags
Usage
$I = new AcceptanceTester( $scenario ); $I->seeTagsForSubscriber( 'john@gmail.com', array( 'customer', 'product-x' ) ); $I->seeCampaignsForSubscriber( 'john@gmail.com', array( 12345, 67890 ) );