Add check to test case

This commit is contained in:
vuurvlieg 2024-03-25 21:56:06 +01:00
parent 2a287f6884
commit ffb9b111fd

View File

@ -123,6 +123,8 @@ void TestEntry::testClone()
QCOMPARE(entryCloneResetTime->title(), QString("New Title"));
QCOMPARE(entryCloneResetTime->historyItems().size(), 0);
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
Entry* firstHistoryItem = entryOrg->historyItems()[0];