Skip to content

Improve Test Coverage and Add HasWilaya and HasCommune traits #32

Draft
n4ss1m wants to merge 8 commits into
kossa:masterfrom
n4ss1m:test_coverage
Draft

Improve Test Coverage and Add HasWilaya and HasCommune traits #32
n4ss1m wants to merge 8 commits into
kossa:masterfrom
n4ss1m:test_coverage

Conversation

@n4ss1m

@n4ss1m n4ss1m commented Mar 11, 2025

Copy link
Copy Markdown
Collaborator
  • Refactor & Test Coverage:

    • Increased test coverage to 100%.
    • Replaced PHPUnit tests with PestPHP-based tests for better readability.
  • New Features:

    • Introduced HasWilaya and HasCommune traits to simplify model associations with Wilayas and Communes.
    • Updated documentation (README.md) to include usage examples for new traits.
  • Refactoring & Cleanup:

    • Moved Wilaya and Commune models into Models/ namespace.
    • Removed deprecated methods and improved type hinting.
    • Integrated spatie/laravel-package-tools for better package structure.

Breaking Changes

  • Models have been moved to Models/ namespace, which may require updates in consuming applications.

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.

1 participant