Skip to content

v7.x-to-master #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

v7.x-to-master #43

wants to merge 11 commits into from

Conversation

ivosgem
Copy link

@ivosgem ivosgem commented Apr 29, 2025

No description provided.

spont4e and others added 11 commits August 31, 2023 11:37
…lues (#39)

* Refactor StoreTest to use attributes for test annotations, update PHPUnit configuration and improve code type hints. Adjust .gitignore for PHPUnit cache directory and add ext-mongodb requirement in composer.json.

* Stop using deprecated RP_PRIMARY and replace it with PRIMARY in MongoDB read preferences.

* Remove version specification from composer.json
#40)

* Refactor StoreTest to use attributes for test annotations, update PHPUnit configuration and improve code type hints. Adjust .gitignore for PHPUnit cache directory and add ext-mongodb requirement in composer.json.

* Stop using deprecated RP_PRIMARY and replace it with PRIMARY in MongoDB read preferences.

* Update mongodb/laravel-mongodb package to version 5.0

* Add test script to composer.json for PHPUnit execution

* Update MongoDB package to ensure compatibility with v5

Refactor `first` method in Builder to handle object and array scenarios effectively. Adjust queries in Store and command files to use `getDatabase()` instead of `getMongoDB()`. Update property accessors for cache data to support object dereferencing.

* Remove deprecated MongoDB builder and helper classes, and refactor tests to use direct database connections. Update GitHub Actions to ensure MongoDB service is available during testing.

* Update MongoDB package and enhance test suite

- Add PHP attribute to require the MongoDB extension in tests.
- Refactor the `TestCase` class for improved environment setup.
- Introduce new test classes: `AdvancedCacheFeaturesTest`, `TaggedCacheTest`, and `LaravelIntegrationTest` to cover various aspects of the MongoDB cache driver.
- Implement tests for incrementing, decrementing, storing arrays/objects, and tagged cache functionality.
- Document test structure in README for clarity on test organization and coverage.
@ivosgem ivosgem requested a review from spont4e April 29, 2025 08:56
@ivosgem ivosgem self-assigned this Apr 29, 2025
@ivosgem ivosgem added the enhancement New feature or request label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants