Skip to content

Development

The repository is set up for DDEV with ddev-drupal-contrib.

ddev start
ddev poser
ddev symlink-project

Add a private file path to web/sites/default/settings.php and rebuild caches before sharing anything on the development site.

Tests

ddev phpunit web/modules/custom/file_share
  • Kernel tests cover who a share admits, item resolution and validation, invitations, removal cascades and revocation, and the tools.
  • Functional tests cover sign-in by code and link, invitations, downloads, headers and the staff screens.

Code standards

ddev phpcs
ddev phpstan

Drupal.org's GitLab CI runs the same checks, and tests against the previous major and minor versions of core.

Documentation

These pages are built with MkDocs and the Drupal Pages theme, pinned in docs/requirements.txt.

python3 -m venv .venv
.venv/bin/python -m pip install -r docs/requirements.txt
.venv/bin/mkdocs serve