Skip to content
Snippets Groups Projects
Commit fe522a86 authored by Alex Barth's avatar Alex Barth
Browse files

Assert some guids and timestamps.

parent 37361158
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase { ...@@ -45,6 +45,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase {
$this->assertEqual($feed['items'][0]['title'], 'Gezondheidswebwinkel'); $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'][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]['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 { ...@@ -56,6 +59,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase {
$this->assertEqual($feed['title'], 'Development Seed - Technological Solutions for Progressive Organizations'); $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'][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]['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);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment