t('FeedAPI Mapper Date'), 'description' => t('Test FeedAPI Mapper support for Date fields'), 'group' => t('FeedAPI Mapper'), ); } /** * SimpleTest core method: code run before each and every test method. */ function setUp() { // Always call the setUp() function from the parent class. parent::setUp( 'feedapi', 'feedapi_node', 'parser_simplepie', 'parser_common_syndication', 'feedapi_mapper', 'content', 'date_api', 'date', 'date_timezone', 'ctools' ); // Create users. $this->admin_user = $this->drupalCreateUser( array( 'administer content types', 'administer feedapi', 'administer nodes', 'administer site configuration', 'advanced feedapi options', 'create feed content', ) ); } function testDateMapping() { $options = array( 'fields' => array( 'alpha' => 'date', 'beta' => 'datestamp', 'gamma' => 'datetime', ), 'filename' => 'drupal.xml', // 'mappers' => array('node', 'date'), 'mapping' => array( serialize(array('options', 'timestamp')) => serialize(array('date', 'field_beta', 'start_stamp')), // @todo: find source data with more dates ), ); $this->drupalLogin($this->admin_user); $this->enableParsers(TRUE, FALSE); $feed_url = $this->setupFeed($options); // Check one of the nodes $this->drupalGet('admin/content/node/overview'); $this->clickLink('DrupalCon DC Website: A Conference Archive'); $this->assertRaw('