polevaultweb/codeception-drip

Codeception 的 Drip 模块

1.0.3 2019-03-03 09:40 UTC

This package is auto-updated.

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


README

Codeception 的 Drip 邮件营销模块。

安装

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

    composer require --dev polevaultweb/codeception-drip

用法

您可以通过将 'Drip' 添加到您的 Codeception 套件配置中的启用模块,将此模块用作其他任何 Codeception 模块。

将 Drip 添加到您的模块列表中

modules:
    enabled:
        - Drip

设置配置变量

    config:
        Drip:
            api_key: '%DRIP_API_KEY%'
            account_id: '%DRIP_ACCOUNT_ID%'

更新 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 ) );