More extensive tests in feedapi_mapper_date.test
Aron Novak - August 18, 2009 - 15:24
| Project: | Feed Element Mapper |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Aron Novak |
| Status: | needs work |
Description
The current tests only test really limited part of the date mapper.
It only utilizes one field with only a start timestamp.
Other things to test:
date in textual representation
start date - end date
date only, time only, date+time fields
all-day events
timezone mapping

#1
Patch for extended date mapper test.
Now it maps:
- timestamp to start_stamp
- textual date to start_date
To do:
- include a feed with multiple dates, so test end_stamp and end_date as well
#2
I improved the date mapper a little bit while writing the test above: #553566: More flexible date handling in date mapper.
Please apply that patch before trying the test.