void AddresseeTest::emptyTest() { KContacts::Addressee addressee; QVERIFY(addressee.isEmpty()); KContacts::Addressee addresseeWithMail; addresseeWithMail.insertEmail(QStringLiteral("*****@*****.**")); QVERIFY(!addresseeWithMail.isEmpty()); }
static void setEmail2(const QString &value, KContacts::Addressee &addressee) { addressee.insertEmail(value, false); }