Branch 'dev/invitations' - akonadi/calendar
Sandro Knauß
knauss at kolabsys.com
Wed Sep 3 22:21:59 CEST 2014
akonadi/calendar/tests/itiphandlertest.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 8dbbcc4ad95124a597768485b6f17d685f4470ee
Author: Sandro Knauà <knauss at kolabsys.com>
Date: Wed Sep 3 22:19:18 2014 +0200
Add tests for postpone
diff --git a/akonadi/calendar/tests/itiphandlertest.cpp b/akonadi/calendar/tests/itiphandlertest.cpp
index 92c9e37..d7d85bb 100644
--- a/akonadi/calendar/tests/itiphandlertest.cpp
+++ b/akonadi/calendar/tests/itiphandlertest.cpp
@@ -182,6 +182,18 @@ void ITIPHandlerTest::testProcessITIPMessage_data()
<< expectedNumIncidences
<< expectedPartStat;
//----------------------------------------------------------------------------------------------
+ // Process a REQUEST without having the incidence in our calendar.
+ // itiphandler should return success and add the rquest to a calendar
+ expectedResult = ITIPHandler::ResultSuccess;
+ data_filename = QLatin1String("invited_us");
+ expectedNumIncidences = 1;
+ expectedPartStat = KCalCore::Attendee::NeedsAction;
+ action = QLatin1String("request");
+ QTest::newRow("invited us5") << data_filename << action << receiver << incidenceUid
+ << expectedResult
+ << expectedNumIncidences
+ << expectedPartStat;
+ //----------------------------------------------------------------------------------------------
// Here we're testing an error case, where data is null.
expectedResult = ITIPHandler::ResultError;
expectedNumIncidences = 0;
More information about the commits
mailing list