summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp')
-rw-r--r--kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp b/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp
index ae589cd..8886447 100644
--- a/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp
+++ b/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp
@@ -421,7 +421,7 @@ void MyMoneyDatabaseMgrTest::testModifyAccount() {
try {
m->modifyAccount(a);
MyMoneyAccount b = m->account("A000001");
- CPPUNIT_ASSERT(b.tqparentAccountId() == a.tqparentAccountId());
+ CPPUNIT_ASSERT(b.parentAccountId() == a.parentAccountId());
CPPUNIT_ASSERT(b.name() == "New account name");
} catch (MyMoneyException *e) {
delete e;
@@ -490,7 +490,7 @@ void MyMoneyDatabaseMgrTest::testModifyInstitution() {
}
}
-void MyMoneyDatabaseMgrTest::testRetqparentAccount() {
+void MyMoneyDatabaseMgrTest::testReparentAccount() {
testAttachDb();
if (!m_canOpen) {
@@ -551,7 +551,7 @@ void MyMoneyDatabaseMgrTest::testRetqparentAccount() {
MyMoneyFile::instance()->preloadCache();
CPPUNIT_ASSERT(m->expense().accountCount() == 3);
CPPUNIT_ASSERT(m->account(ex1.id()).accountCount() == 1);
- CPPUNIT_ASSERT(ex3.tqparentAccountId() == STD_ACC_EXPENSE);
+ CPPUNIT_ASSERT(ex3.parentAccountId() == STD_ACC_EXPENSE);
//for (int i = 0; i < 100; ++i) {
m->reparentAccount(ex3, ex1);
@@ -559,7 +559,7 @@ void MyMoneyDatabaseMgrTest::testRetqparentAccount() {
MyMoneyFile::instance()->preloadCache();
CPPUNIT_ASSERT(m->expense().accountCount() == 2);
CPPUNIT_ASSERT(m->account(ex1.id()).accountCount() == 2);
- CPPUNIT_ASSERT(ex3.tqparentAccountId() == ex1.id());
+ CPPUNIT_ASSERT(ex3.parentAccountId() == ex1.id());
} catch (MyMoneyException *e) {
std::cout << std::endl << e->what() << std::endl;
delete e;
@@ -575,7 +575,7 @@ void MyMoneyDatabaseMgrTest::testAddTransactions() {
return;
}
- testRetqparentAccount();
+ testReparentAccount();
MyMoneyAccount ch;
MyMoneyTransaction t1, t2;
@@ -1045,7 +1045,7 @@ void MyMoneyDatabaseMgrTest::testRemoveInstitution() {
}
testModifyInstitution();
- testRetqparentAccount();
+ testReparentAccount();
MyMoneyInstitution i;
MyMoneyAccount a;
@@ -1474,7 +1474,7 @@ void MyMoneyDatabaseMgrTest::testAddSchedule() {
}
// put some accounts in the db, so the tests don't break
- testRetqparentAccount();
+ testReparentAccount();
try {
CPPUNIT_ASSERT(m->scheduleList().count() == 0);
@@ -1648,7 +1648,7 @@ void MyMoneyDatabaseMgrTest::testScheduleList() {
}
// put some accounts in the db, so the tests don't break
- testRetqparentAccount();
+ testReparentAccount();
TQDate testDate = TQDate::tqcurrentDate();
TQDate notOverdue = testDate.addDays(2);