publishpress/codeception-extension-extended-copier

Codeception extension that extends WPBrowser's Copier extension, allowing to create parent directories and copy the same files multiple times.

1.0.0 2023-04-19 15:56 UTC

This package is auto-updated.

Last update: 2024-04-19 18:07:20 UTC


README

Codeception extension extending WPBrowser's Copier extension to allow for more advanced copying of files and directories.

It adds the following features:

  • Copying of files and directories from the same source to different destinations.
  • Creates not existent parent directories of the destination if not existing, instead of failing.

Installation

composer require --dev publishpress/codeception-extension-extended-copier

Usage

extensions:
    enabled:
        - PublishPress\Codeception\Extension\ExtendedCopier
    config:
        PublishPress\Codeception\Extension\ExtendedCopier:
            files:
                0: "directory1:%WP_ROOT_FOLDER%/wp-content/plugins/directory1"
                1: "directory2:%WP_ROOT_FOLDER%/wp-content/plugins/directory2"
                2: "directory2:%WP_ROOT_FOLDER%/wp-content/plugins/directory3"