# Codeception Test Suite Configuration

# suite for WordPress functional tests.
# Emulate web requests and make application process them.
class_name: WpunitTester
modules:
  enabled:
    - \Helper\Wpunit
    - WPDb
    - WPLoader
  config:
    WPDb:
      dsn: 'mysql:host=%WP_DB_HOST%;dbname=%WP_DB_NAME%'
      user: %WP_DB_USER%
      password: %WP_DB_PASSWORD%
      dump: 'tests/_data/dump.sql'
      populate: true
      cleanup: false
      url: %WP_URL%
      tablePrefix: %WP_TABLE_PREFIX%
      waitlock: 0
    WPLoader:
      wpRootFolder: %WP_ROOT_FOLDER%
      dbName: %WP_TEST_DB_NAME%
      dbHost: %WP_TEST_DB_HOST%
      dbUser: %WP_TEST_DB_USER%
      dbPassword: %WP_TEST_DB_PASSWORD%
      tablePrefix: %WP_TABLE_PREFIX%
      domain: %WP_DOMAIN%
      adminEmail: admin@%WP_DOMAIN%
      title: 'PMPro Tests'
      plugins:
        - paid-memberships-pro/paid-memberships-pro.php
      activatePlugins:
        - paid-memberships-pro/paid-memberships-pro.php
