polevaultweb / codeception-activecampaign
ActiveCampaign module for Codeception
1.0
2019-03-03 21:42 UTC
Requires
- php: >=5.4.0
- activecampaign/api-php: ^2.0
- codeception/codeception: *
- polevaultweb/codeception-emailmarketing: ^1.0
This package is auto-updated.
Last update: 2024-11-29 05:39:14 UTC
README
An ActiveCampaign email marketing module for Codeception.
Installation
You need to add the repository into your composer.json file
composer require --dev polevaultweb/codeception-activecampaign
Usage
You can use this module as any other Codeception module, by adding 'ActiveCampaign' to the enabled modules in your Codeception suite configurations.
Add ActiveCampaign to your list of modules
modules: enabled: - ActiveCampaign
Setup the configuration variables
config: ActiveCampaign: api_key: '%ACTIVECAMPAIGN_API_KEY%' api_url: '%ACTIVECAMPAIGN_API_URL%'
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 ) );