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

Aron Novak - August 19, 2009 - 13:42
Status:active» needs work

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

AttachmentSize
552480_better_date_test.patch 4.02 KB

#2

Aron Novak - August 19, 2009 - 13:47

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.

 
 

Drupal is a registered trademark of Dries Buytaert.