Run CRUD operations, field validation, and constraint tests on individual model classes.
Tests: Create, Read, Update, Delete, Required fields, Type constraints, Unique constraints
Test collection classes (Multi*) that handle querying multiple records.
Tests: Basic loading, Filtering, Ordering, Pagination, Combined queries
Run both single and multi tests in one session. Use these options with caution as they may take longer.
Note: This runs single tests with Multi tests enabled via GET parameter. The recommended approach is to run tests separately using the options above.
To test a specific model, add it to the URL:
/tests/models/run_all.php?class=User
- Test only the User model/tests/models/run_multi.php?class=User
- Test only MultiUserYou can also control testing via environment variables:
TEST_MULTI=1 php run_all.php
- Enable Multi tests in CLI mode