From fe522a86aa7e16b71425a7ee384dc8525f75ecd4 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Tue, 7 Sep 2010 22:00:54 +0000 Subject: [PATCH] Assert some guids and timestamps. --- tests/common_syndication_parser.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/common_syndication_parser.test b/tests/common_syndication_parser.test index 1db601ad..754ac265 100644 --- a/tests/common_syndication_parser.test +++ b/tests/common_syndication_parser.test @@ -45,6 +45,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase { $this->assertEqual($feed['items'][0]['title'], 'Gezondheidswebwinkel'); $this->assertEqual($feed['items'][0]['url'], 'http://www.magentosites.net/store/2010/04/28/gezondheidswebwinkel/index.html'); $this->assertEqual($feed['items'][1]['url'], 'http://www.magentosites.net/store/2010/04/26/mybobinocom/index.html'); + $this->assertEqual($feed['items'][1]['guid'], 'http://www.magentosites.net/node/3472'); + $this->assertEqual($feed['items'][2]['guid'], 'http://www.magentosites.net/node/3471'); + $this->assertEqual($feed['items'][2]['timestamp'], 1272285294); } /** @@ -56,6 +59,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase { $this->assertEqual($feed['title'], 'Development Seed - Technological Solutions for Progressive Organizations'); $this->assertEqual($feed['items'][0]['title'], 'Open Atrium Translation Workflow: Two Way Translation Updates'); $this->assertEqual($feed['items'][1]['url'], 'http://developmentseed.org/blog/2009/oct/05/week-dc-tech-october-5th-edition'); + $this->assertEqual($feed['items'][1]['guid'], '973 at http://developmentseed.org'); + $this->assertEqual($feed['items'][2]['guid'], '972 at http://developmentseed.org'); + $this->assertEqual($feed['items'][2]['timestamp'], 1254493864); } /** -- GitLab