Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 24e8418c authored by Laurent Montel's avatar Laurent Montel 😁

improve unittest

parent 211806d0
......@@ -104,6 +104,8 @@ void GrantleePrintTest::shouldDisplayContactInfo_data()
QTest::newRow("suffix") << QString(QLatin1String("suffix")) << QString(QLatin1String("foo-suffix"));
QTest::newRow("prefix") << QString(QLatin1String("prefix")) << QString(QLatin1String("foo-prefix"));
QTest::newRow("department") << QString(QLatin1String("department")) << QString(QLatin1String("foo-department"));
QTest::newRow("office") << QString(QLatin1String("office")) << QString(QLatin1String("foo-office"));
QTest::newRow("profesion") << QString(QLatin1String("profession")) << QString(QLatin1String("foo-profession"));
#if 0
QString realName() const;
QString formattedName() const;
......@@ -122,8 +124,6 @@ void GrantleePrintTest::shouldDisplayContactInfo_data()
QString logo() const;
QVariant crypto() const;
QString anniversary() const;
QString profession() const;
QString office() const;
QString manager() const;
QString assistant() const;
QString spouse() const;
......@@ -151,6 +151,9 @@ void GrantleePrintTest::shouldDisplayContactInfo()
address.setSuffix(QLatin1String("foo-suffix"));
address.setPrefix(QLatin1String("foo-prefix"));
address.setDepartment(QLatin1String("foo-department"));
address.insertCustom( QLatin1String( "KADDRESSBOOK" ), QLatin1String( "X-Office" ), QString(QLatin1String("foo-office")));
address.insertCustom( QLatin1String( "KADDRESSBOOK" ), QLatin1String( "X-Profession" ) , QString(QLatin1String("foo-profession")));
lst << address;
grantleePrint->setContent(QString::fromLatin1("{% if contacts %}{% for contact in contacts %}{% if contact.%1 %}{{ contact.%1 }}{% endif %}{% endfor %}{% endif %}").arg(variable));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment