Skip to content

Conversation

@DevquasarX9
Copy link
Member

No description provided.

@DevquasarX9 DevquasarX9 added the enhancement New feature or request label Apr 23, 2025
@DevquasarX9 DevquasarX9 self-assigned this Apr 23, 2025
@DevquasarX9 DevquasarX9 force-pushed the update-mongodb-package branch 2 times, most recently from a2067ba to bcc4146 Compare April 23, 2025 12:05
@DevquasarX9 DevquasarX9 marked this pull request as ready for review April 23, 2025 12:05
@DevquasarX9 DevquasarX9 requested a review from spont4e April 23, 2025 12:05
@DevquasarX9 DevquasarX9 changed the title Update mongodb/laravel-mongodb package Update mongodb/laravel-mongodb package to version 5.0 in composer.json Apr 23, 2025
Base automatically changed from update-phpunit-configuration to v6.x April 25, 2025 10:41
…Unit configuration and improve code type hints. Adjust .gitignore for PHPUnit cache directory and add ext-mongodb requirement in composer.json.
@DevquasarX9 DevquasarX9 force-pushed the update-mongodb-package branch from bcc4146 to 4489bf4 Compare April 25, 2025 11:11
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.
…sts to use direct database connections. Update GitHub Actions to ensure MongoDB service is available during testing.
- 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 merged commit 143879b into v6.x Apr 29, 2025
1 check passed
@DevquasarX9 DevquasarX9 deleted the update-mongodb-package branch April 29, 2025 05:58
@DevquasarX9 DevquasarX9 restored the update-mongodb-package branch April 29, 2025 06:09
@DevquasarX9 DevquasarX9 deleted the update-mongodb-package branch April 29, 2025 06:28
DevquasarX9 added a commit that referenced this pull request Apr 29, 2025
#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.
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