polevaultweb/codeception-activecampaign

Codeception 的 ActiveCampaign 模块

1.0 2019-03-03 21:42 UTC

This package is auto-updated.

Last update: 2024-08-29 05:06:37 UTC


README

Codeception 的 ActiveCampaign 电子邮件营销模块。

安装

您需要将仓库添加到您的 composer.json 文件中

composer require --dev polevaultweb/codeception-activecampaign

使用方法

您可以将此模块作为任何其他 Codeception 模块使用,只需将 'ActiveCampaign' 添加到您的 Codeception 套件配置中启用的模块列表。

将 ActiveCampaign 添加到模块列表

modules:
    enabled:
        - ActiveCampaign

设置配置变量

    config:
        ActiveCampaign:
            api_key: '%ACTIVECAMPAIGN_API_KEY%'
            api_url: '%ACTIVECAMPAIGN_API_URL%'

更新 Codeception 构建

codecept build

支持

  • getActiveCampaignsForSubscriber
  • deleteSubscriber

以及断言

  • seeCustomFieldForSubscriber
  • seeTagsForSubscriber
  • cantSeeTagsForSubscriber
  • seeCampaignsForSubscriber
  • cantSeeCampaignsForSubscriber
  • waitForSubscriberToNotHaveTags

使用方法

$I = new AcceptanceTester( $scenario );

$I->seeTagsForSubscriber( 'john@gmail.com', array( 'customer', 'product-x' ) );
$I->seeCampaignsForSubscriber( 'john@gmail.com', array( 12345, 67890 ) );