Lando needs to be installed as a prerequisite.
- Clone Drupal core:
git clone https://git.drupalcode.org/project/drupal.git .
- Copy this .lando.yml file to the project root and change as needed. Start lando.
lando start
- Install Drupal module and php package dependencies with Composer
lando composer install
- (Optional) Setup all the local settings files and database connection. (Be aware that this will disable caching and turn on twig debugging).
lando drupal-local-settings
If you prefer not to do this step then use the following database credentials:
database = drupal9
username = drupal9
password = drupal9
host = database
port = 3306
Run tests
lando phpunit modules/contrib/
or run a group of tests tagged with an @group
. Ex. @group ckeditor
lando phpunit --group ckeditor
The testing setup came from https://gist.github.com/mikeshiyan/a91b6aadcf76734dfad08dd5811119de and it has extra config for doing Nightwatch tests if needed.