diff options
author | Felix Geyer <debfx@fobos.de> | 2016-09-02 13:01:49 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2016-10-03 04:45:55 +0300 |
commit | ad834f0f58d08681b47387dbdb80e3d4ca3811b9 (patch) | |
tree | aa39007f4a870ab93e68b202435ffd7dd5e04e6b /tests/TestGroup.cpp | |
parent | 8a50ee8b220e7f83939506e8ac94422f0d7a771a (diff) | |
parent | 878995366aacf55bdff7e7fc9274073aca9d4c87 (diff) |
Merge branch '2.0'
Diffstat (limited to 'tests/TestGroup.cpp')
-rw-r--r-- | tests/TestGroup.cpp | 5 |
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; } |