From f742061a5e35e6f48a8609d577db214232391c0b Mon Sep 17 00:00:00 2001 From: "E. Kozlovskaya" Date: Sun, 3 Jan 2021 23:29:07 +0700 Subject: [PATCH] Fixed tests --- iFacilityTests/tst_ifacilitytest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iFacilityTests/tst_ifacilitytest.cpp b/iFacilityTests/tst_ifacilitytest.cpp index 18b0aa9..58a3c12 100644 --- a/iFacilityTests/tst_ifacilitytest.cpp +++ b/iFacilityTests/tst_ifacilitytest.cpp @@ -25,7 +25,7 @@ private slots: void iFacilityTest::test_user_add_profession() { - auto u = User::createUser("test", "test", "f", "s", "t"); + auto u = User::createUser("test", "test", UserType::ADMINISTRATOR, "f", "s", "t"); auto p1 = Profession::createProfession("test1"); auto p2 = Profession::createProfession("test2"); @@ -48,7 +48,7 @@ void iFacilityTest::test_user_add_profession() { } void iFacilityTest::test_user_remove_profession() { - auto u = User::createUser("test", "test", "f", "s", "t"); + auto u = User::createUser("test", "test", UserType::ADMINISTRATOR, "f", "s", "t"); auto p1 = Profession::createProfession("test1"); @@ -60,7 +60,7 @@ void iFacilityTest::test_user_remove_profession() { } void iFacilityTest::test_user_current_profession() { - auto u = User::createUser("test", "test", "f", "s", "t"); + auto u = User::createUser("test", "test", UserType::ADMINISTRATOR, "f", "s", "t"); auto p1 = Profession::createProfession("test1"); auto p2 = Profession::createProfession("test2"); @@ -77,7 +77,7 @@ void iFacilityTest::test_user_serialization() { QDataStream qdsw(&bytes, QIODevice::WriteOnly); QDataStream qdsr(&bytes, QIODevice::ReadOnly); - auto u1 = User::createUser("test", "test", "f", "s", "t"); + auto u1 = User::createUser("test", "test", UserType::ADMINISTRATOR, "f", "s", "t"); auto p1 = Profession::createProfession("test1"); auto p2 = Profession::createProfession("test2");