summaryrefslogtreecommitdiff
path: root/libdbpp/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/unittests')
-rw-r--r--libdbpp/unittests/testConnectionPool.cpp2
-rw-r--r--libdbpp/unittests/testPatch.cpp2
-rw-r--r--libdbpp/unittests/testUtils.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/libdbpp/unittests/testConnectionPool.cpp b/libdbpp/unittests/testConnectionPool.cpp
index 124df5b..de3de79 100644
--- a/libdbpp/unittests/testConnectionPool.cpp
+++ b/libdbpp/unittests/testConnectionPool.cpp
@@ -8,7 +8,7 @@
class MockPool : public DB::PluginMock<PQ::Mock>, public DB::ConnectionPool {
public:
MockPool() :
- PluginMock<PQ::Mock>("user=postgres dbname=postgres", "pqmock", { }),
+ PluginMock<PQ::Mock>("pqmock", { }, "user=postgres dbname=postgres"),
DB::ConnectionPool(4, 2, "postgresql", stringbf("user=postgres dbname=%s", databaseName()))
{
}
diff --git a/libdbpp/unittests/testPatch.cpp b/libdbpp/unittests/testPatch.cpp
index b9ede04..a1c77d3 100644
--- a/libdbpp/unittests/testPatch.cpp
+++ b/libdbpp/unittests/testPatch.cpp
@@ -13,7 +13,7 @@
class Mock : public DB::PluginMock<PQ::Mock> {
public:
Mock() :
- DB::PluginMock<PQ::Mock>("user=postgres dbname=postgres", "pqmock", { rootDir / "patch.sql" })
+ DB::PluginMock<PQ::Mock>("pqmock", { rootDir / "patch.sql" }, "user=postgres dbname=postgres")
{
}
};
diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp
index c926a47..04fad4f 100644
--- a/libdbpp/unittests/testUtils.cpp
+++ b/libdbpp/unittests/testUtils.cpp
@@ -15,8 +15,8 @@
class StandardMockDatabase : public DB::PluginMock<PQ::Mock> {
public:
- StandardMockDatabase() : DB::PluginMock<PQ::Mock>("user=postgres dbname=postgres", "pqmock", {
- rootDir / "util.sql" })
+ StandardMockDatabase() : DB::PluginMock<PQ::Mock>("pqmock", {
+ rootDir / "util.sql" }, "user=postgres dbname=postgres")
{
}
};