no need to test concrete implementations
This commit is contained in:
parent
a65c9259fa
commit
2fe41a5fe7
3 changed files with 3 additions and 120 deletions
|
|
@ -20,6 +20,9 @@ Code patterns to follow:
|
|||
- Entities: constructor with properties, getters
|
||||
- DTOs: simple data containers for creation
|
||||
- Repositories: interfaces that define data access
|
||||
- Do not write unit tests for concrete repository implementations
|
||||
(e.g., Doctrine/persistence-backed). They are exercised by e2e
|
||||
tests. Use cases are tested with fake repositories.
|
||||
- Use cases: business logic with Request objects
|
||||
- When throwing exceptions, add @throws docblock
|
||||
- Fakes: in-memory implementations for testing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue