Coding standards
Security in ResourceSpace
Developer reference
Database

Automated Testing

Available from v11.1

Automated testing helps us verify that the application behaves as expected and gives us confidence when making changes.

We use PestPHP as our testing framework. Tests should be considered part of the development process, not an afterthought: new features, bug fixes, and changes to existing behaviour should be covered by appropriate automated tests where practical.

This guide explains how we approach automated testing in ResourceSpace, including how tests are structured, how to run them, and the conventions and/or patterns we expect developers to follow.

Environment setup

Your development/test run environment will require PHP 8.4+ for all dependency criteria to be met. Composer might complain about additional requirements (e.g. sockets, pcntl).

Ensure your development dependencies are installed:

composer install
pnpm install --frozen-lockfile
pnpm exec playwright install --with-deps chromium

Then you can check tests run with:

composer test:full