mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 22:36:59 -05:00
Add check to test case
This commit is contained in:
parent
2a287f6884
commit
ffb9b111fd
@ -123,6 +123,8 @@ void TestEntry::testClone()
|
|||||||
QCOMPARE(entryCloneResetTime->title(), QString("New Title"));
|
QCOMPARE(entryCloneResetTime->title(), QString("New Title"));
|
||||||
QCOMPARE(entryCloneResetTime->historyItems().size(), 0);
|
QCOMPARE(entryCloneResetTime->historyItems().size(), 0);
|
||||||
QVERIFY(entryCloneResetTime->timeInfo().creationTime() != entryOrg->timeInfo().creationTime());
|
QVERIFY(entryCloneResetTime->timeInfo().creationTime() != entryOrg->timeInfo().creationTime());
|
||||||
|
// Cloning with CloneResetTimeInfo should not affect the LastModificationTime
|
||||||
|
QCOMPARE(entryCloneResetTime->timeInfo().lastModificationTime(), entryOrg->timeInfo().lastModificationTime());
|
||||||
|
|
||||||
// Date back history of original entry
|
// Date back history of original entry
|
||||||
Entry* firstHistoryItem = entryOrg->historyItems()[0];
|
Entry* firstHistoryItem = entryOrg->historyItems()[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user