Hi! I am having some troubles integrating yii2 with codeception unit testing, I can’t configure the “Db” module. When I run the tests this message appears in the console:
[Codeception\Exception\Module]
(Exception in Db) could not find pgsql driver while creating PDO connection
And this is odd because I already have other apllications working with PDO, yii2-basic template for instance.
— unit.suite.yml —
class_name: UnitTester
modules:
enabled:
- Asserts
- UnitHelper
- Db
config:
Db:
dsn: 'pgsql:host=127.0.0.1;dbname=testes'
user: 'root'
password: '123456'
I don’t know what I’m doing wrong, have anyone experienced this?
Anderson.