handbook/behat-steps/given-save-the-file-as.md
github-actions[bot] c22aa665e6 Regenerate handbook
2025-12-17 18:56:32 +00:00

5.7 KiB

Given /^save the (.+) file (['].+[^'])?as {(\w+)}$/

Stores the contents of the given file in a variable.


Usage

Scenario: My example scenario
  Given a WP installation with Composer
  And save the {RUN_DIR}/composer.json file as {COMPOSER_JSON}

Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.