Skip to content

Conversation

@mra9994
Copy link
Contributor

@mra9994 mra9994 commented Dec 23, 2025

Refactor Validation Tests to Follow DRY Principle

Summary

This PR refactors the validation tests to remove repetitive validation logic and standardize test structure using RuleTestTrait and AssertionsTrait. The changes centralize validation assertions and leverage reusable traits for testing both valid and invalid data scenarios.

Notes

  • No changes were made to the actual test data.
  • All tests have been executed via GitHub Actions and passed successfully.

@milwad-dev
Copy link
Owner

I don't think it's readable for developers; it's hard to understand.

@milwad-dev milwad-dev closed this Dec 25, 2025
@milwad-dev milwad-dev changed the title refactor(tests): DRY up validation tests. [1.x] getTeachersrefactor(tests): DRY up validation tests. Dec 25, 2025
@milwad-dev milwad-dev changed the title [1.x] getTeachersrefactor(tests): DRY up validation tests. [1.x] refactor(tests): DRY up validation tests. Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants