diff --git a/tests/unit/Data/DbCommon/CommandBuilderPgsqlTest.php b/tests/unit/Data/DbCommon/CommandBuilderPgsqlTest.php index 5d31bdc8d..157c20af4 100755 --- a/tests/unit/Data/DbCommon/CommandBuilderPgsqlTest.php +++ b/tests/unit/Data/DbCommon/CommandBuilderPgsqlTest.php @@ -18,7 +18,8 @@ protected function setUp() function pgsql_meta_data() { - $conn = new TDbConnection('pgsql:host=localhost;dbname=prado_unitest', 'prado_unitest','prado_unitest'); + $cred = getenv('SCRUTINIZER') ? 'scrutinizer' : 'prado_unitest'; + $conn = new TDbConnection('pgsql:host=localhost;dbname=prado_unitest', $cred, $cred); return new TPgsqlMetaData($conn); } diff --git a/tests/unit/Data/DbCommon/PgsqlColumnTest.php b/tests/unit/Data/DbCommon/PgsqlColumnTest.php index f878c5c91..17bb281e3 100755 --- a/tests/unit/Data/DbCommon/PgsqlColumnTest.php +++ b/tests/unit/Data/DbCommon/PgsqlColumnTest.php @@ -19,7 +19,8 @@ protected function setUp() function create_meta_data() { - $conn = new TDbConnection('pgsql:host=localhost;dbname=prado_unitest', 'prado_unitest','prado_unitest'); + $cred = getenv('SCRUTINIZER') ? 'scrutinizer' : 'prado_unitest'; + $conn = new TDbConnection('pgsql:host=localhost;dbname=prado_unitest', $cred, $cred); return new TPgsqlMetaData($conn); }