Thomas Shelby
Thomas Shelby

Reputation: 1370

Codeception and MongoDb. Configuration file

I would like test some data by codeception. And I don't know, how should correct set 'dns' in configuration file. I try this, but I get connection error

- MongoDb:
      dsn: 'host=127.0.0.1:27017;dbname=test'
      user: 'root'
      password: ''

Upvotes: 2

Views: 708

Answers (1)

obivan86
obivan86

Reputation: 11

Add this config in your codeception.yml file

modules:
   MongoDb:
      dsn: mongodb://host:port/database

Upvotes: 1

Related Questions