Skip to content

Conversation

@DevquasarX9
Copy link
Member

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.
@DevquasarX9 DevquasarX9 requested a review from spont4e April 29, 2025 08:56
@DevquasarX9 DevquasarX9 self-assigned this Apr 29, 2025
@DevquasarX9 DevquasarX9 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.

3 participants