dropfort/codeception-drupal

This package is abandoned and no longer maintained. The author suggests using the guncha25/drupal-codeception package instead.

A module for Codeception that exposes the Drupal API to test suites.

dev-master 2020-07-06 17:59 UTC

This package is auto-updated.

Last update: 2020-07-07 19:28:38 UTC


README

Usage

In your *.suite.yml file, add Drupal to your enabled modules list.

Example configuration

This will run tests under the assumption that your Drupal installation is in a drupal sub-directory.

class_name: AcceptanceTester modules:
    enabled:
        \Codeception\Module\Drupal8\Drupal8:
            root: '../web'
            relative: yes

Options

root

Accepts: string Default: current working directory

This defines the Drupal root in relation to the codecept.yml file. If this isn't passed in it defaults to the current working directory.

relative

Accepts: yes or no Default: no

This allows you to specify if the path to the drupal root is relative from the codeception.yml file. Accepts yes or no.