- Clone this repo, enter the folder.
- Install DDEV if not already done: https://ddev.readthedocs.io/en/stable/#installation
ddev start
- If needed, change Drupal version in composer.json
ddev composer install
ddev composer update drupal/lms
ddev composer si
ddev ssh
mkdir web/sites/default/files/simpletest/browser_output
(if not already done)composer test
To check all, run ddev analyse-code path/to/analyzed/folder
.
For single tool analysis of the LMS module execute:
- phpcs:
ddev composer phpcs
- phpcbf:
ddev composer phpcbf
- phpstan:
ddev composer phpstan
cd web/modules/contrib/lms
git remote add your-fork-name your-fork-ssh
git pull
- Checkout issue branch, make changes, push to your fork, create a merge request.
To create a site with test content already created, run:
ddev composer sid
To create a site with the initial state of functional JS tests, run:
ddev composer test-environment