Extras
Helpful extras
PhpUnit from the host
Place the following inside .ddev/commands/web/phpunit
to have a convenient way to run phpunit commands inside the web
container.
Example: ddev phpunit app/modules/custom/my_module/tests/
#!/bin/bash
## Description: Run phpunit inside the web container
## Usage: phpunit [flags] [args]
## Example: "ddev phpunit app/modules/custom/my_module/tests"
## ProjectTypes: drupal10
## ExecRaw: true
phpunit "$@"
Managing Git
To help you maintain this over time, you may wish to use the following .gitignore
settings:
# DDEV
.ddev/*
!.ddev/commands/
!.ddev/config.yaml
!.ddev/config.*.yaml
!.ddev/docker-compose.*.yaml