Author: Alberto Mardegan Description: tests: update aggregation test for contacts in the same collection We don't want contacts from the same collection to get merged. --- a/tests/auto/aggregation/tst_aggregation.cpp +++ b/tests/auto/aggregation/tst_aggregation.cpp @@ -3414,7 +3414,8 @@ int newContactsCount = allContacts.size() - allContactsCount; QCOMPARE(newContactsCount, 6); // 3 local, 3 aggregate - // Now we test the semantic of "two contacts from the same collection should get aggregated if they match" + // Now we test the semantic of "two contacts from the same collection + // should not get aggregated even if they match" QContact d, e; d.setCollectionId(trialAddressbook.id()); e.setCollectionId(trialAddressbook.id()); @@ -3434,7 +3435,8 @@ allContacts = m_cm->contacts(allCollections); newContactsCount = allContacts.size() - allContactsCount; - QCOMPARE(newContactsCount, 9); // 5 local, 4 aggregate - d and e should have been aggregated into one. + QCOMPARE(newContactsCount, 10); // 5 local, 5 aggregate - d and e should not + // have been aggregated into one. } void tst_Aggregation::customSemantics()