Skip to content

Commit

Permalink
Simplified test config object
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Jan 7, 2024
1 parent aeb2db3 commit 8f5a8e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ composer install phpfastcache/mongodb-extension
```

#### ⚠️ This extension requires:
1️ The composer `mongodb/mongodb` library `1.10` at least.\
1️ The composer `mongodb/mongodb` library `1.10` at least.

## Events
This driver is currently not emitting [customs events](https://github.com/PHPSocialNetwork/phpfastcache/blob/master/docs/EVENTS.md).
6 changes: 3 additions & 3 deletions tests/Configs/github-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

use Phpfastcache\Drivers\Mongodb\Config as MongodbConfig;

return (fn(MongodbConfig $config) => $config->setItemDetailedDate(true)
return (new MongodbConfig())
->setItemDetailedDate(true)
->setHost('127.0.0.1')
->setOptions(getenv('MONGODB_AUTH_SOURCE') ? ['authSource' => getenv('MONGODB_AUTH_SOURCE')] : [])
->setDatabaseName('pfc_test')
->setCollectionName('pfc_test')
->setUsername('test')
->setPassword('phpfastcache')
)(new MongodbConfig());
->setPassword('phpfastcache');

0 comments on commit 8f5a8e9

Please sign in to comment.