Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
{
|
2026-03-20 16:43:44 +00:00
|
|
|
"name": "stacktest/demo-package",
|
|
|
|
|
"description": "Demo package for Stack.Gallery Registry e2e tests",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"type": "library",
|
|
|
|
|
"license": "MIT",
|
|
|
|
|
"authors": [
|
|
|
|
|
{
|
|
|
|
|
"name": "Stack.Gallery Test",
|
|
|
|
|
"email": "test@stack.gallery"
|
Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
}
|
2026-03-20 16:43:44 +00:00
|
|
|
],
|
|
|
|
|
"require": {
|
|
|
|
|
"php": ">=8.0"
|
|
|
|
|
},
|
|
|
|
|
"autoload": {
|
|
|
|
|
"psr-4": {
|
|
|
|
|
"StackTest\\DemoPackage\\": "src/"
|
|
|
|
|
}
|
|
|
|
|
}
|
Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
}
|