- Drupal 11.x support
- ARM-architechture support Selenium-Chrome image.
- joachim-n/drupal-project-contrib-development for easier contrib development
- Simpler setup
- VSCode support
- Install DDEV
ddev start
- Replace
MODULE_NAME
on following with name of your contrib module (use admin_toolbar). mkdir -p repos; cd repos
git clone [email protected]:project/MODULE_NAME
cd ..
ddev composer install
ddev composer require drupal/MODULE_NAME
ddev composer drupal-contrib:switch-clone MODULE_NAME
To analyze using the distributed phpstan.neon.xml file:
phpstan web/modules/contrib/MODULE_NAME
to get more errors to fix, increase the level
phpstan web/modules/contrib/MODULE_NAME -l9
ddev phpcs web/modules/contrib/MODULE_NAME
ddev phpcbf web/modules/contrib/MODULE_NAME
cd web/core
ddev yarn install
ddev yarn run spellcheck ../modules/contrib/MODULE_NAME
ddev eslint web/modules/contrib/MODULE_NAME
ddev eslint web/modules/contrib/MODULE_NAME --fix
ddev phpunit --debug web/modules/contrib/MODULE_NAME
ddev phpunit --group MODULE_NAME
See Running and debugging PHPUnit tests in PHPStorm with DDev and xdebug for a video demo covering configuration for running and debugging:
- Unit tests
- Kernel tests
- Functional tests
- FunctionalJavascript tests
- Drupal Test Traits (ExistingSiteSelenium2DriverTest)