Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2016-09-02 13:01:49 +0300
committerJonathan White <support@dmapps.us>2016-10-03 04:45:55 +0300
commitad834f0f58d08681b47387dbdb80e3d4ca3811b9 (patch)
treeaa39007f4a870ab93e68b202435ffd7dd5e04e6b /tests/TestGroup.cpp
parent8a50ee8b220e7f83939506e8ac94422f0d7a771a (diff)
parent878995366aacf55bdff7e7fc9274073aca9d4c87 (diff)
Merge branch '2.0'
Diffstat (limited to 'tests/TestGroup.cpp')
-rw-r--r--tests/TestGroup.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/TestGroup.cpp b/tests/TestGroup.cpp
index 13ce82ea5..a923776de 100644
--- a/tests/TestGroup.cpp
+++ b/tests/TestGroup.cpp
@@ -385,7 +385,12 @@ void TestGroup::testClone()
QVERIFY(clonedSubGroupEntry->uuid() != subGroupEntry->uuid());
QCOMPARE(clonedSubGroupEntry->title(), QString("SubGroupEntry"));
+ Group* clonedGroupKeepUuid = originalGroup->clone(Entry::CloneNoFlags);
+ QCOMPARE(clonedGroupKeepUuid->entries().at(0)->uuid(), originalGroupEntry->uuid());
+ QCOMPARE(clonedGroupKeepUuid->children().at(0)->entries().at(0)->uuid(), subGroupEntry->uuid());
+
delete clonedGroup;
+ delete clonedGroupKeepUuid;
delete db;
}