Lando needs to be installed as a prerequisite.
-
Copy this .lando.yml file to the project root and change as needed.
-
Use Composer to install Drupal core:
$ lando drupal-download
- Start the Lando server.
lando start
- (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
- You can now visit the url created by Lando.
http://drupal.lndo.site/
If you prefered not to do step 4, then use the following database credentials:
database = drupal10
username = drupal10
password = drupal10
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.
Note: the chromedriver
command
may need to be updated to includeallowed-origins
: