This assumes an existing Drupal 9+ instance with Lando.
lando composer require behat/behat drupal/drupal-extension drush-ops/behat-drush-endpoint
Don't forget to add appserver
to your $settings['trusted_host_patterns']
in settings.php
.
Run lando behat --init
to initiate the features directory.
Refer to Behat and Drupal Extension documentation for additional help.