Normalize formatting/line endings across configs, controllers, models, tests, and OpenAPI specs. Update rule expression/rule engine implementation and remove obsolete RuleAction controller/model. Add unit tests for rule expression syntax and multi-action behavior, and include docs updates.
1.4 KiB
1.4 KiB
Suggested Commands (Windows)
Core Project Commands
- Install dependencies:
composer install - Run all tests:
./vendor/bin/phpunit - Run one test file:
./vendor/bin/phpunit tests/feature/Patients/PatientCreateTest.php - Run one test method:
./vendor/bin/phpunit --filter testCreatePatientSuccess tests/feature/Patients/PatientCreateTest.php - Run test suite:
./vendor/bin/phpunit --testsuite App - Run with coverage:
./vendor/bin/phpunit --coverage-html build/logs/html
CodeIgniter/Spark Commands
- Create migration:
php spark make:migration <name> - Create model:
php spark make:model <name> - Create controller:
php spark make:controller <name> - Apply migrations:
php spark migrate - Rollback migrations:
php spark migrate:rollback - Run local app:
php spark serve
OpenAPI Docs Commands
- Rebundle API docs after YAML changes:
node public/bundle-api-docs.js
Git and Shell Utilities (Windows)
- Git status:
git status - Diff changes:
git diff - Show staged diff:
git diff --cached - Recent commits:
git log --oneline -n 10 - List files (PowerShell):
Get-ChildItem - Recursive file search (PowerShell):
Get-ChildItem -Recurse -File - Text search (PowerShell):
Select-String -Path .\* -Pattern "<text>" -Recurse
Notes
- Testing DB values in
phpunit.xml.distare environment-specific; verify before running tests. - API docs bundle output file:
public/api-docs.bundled.yaml.