summaryrefslogtreecommitdiffstatshomepage
path: root/modules/aggregator/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-24 17:42:22 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-24 17:42:22 +0000
commita6f7939484cb29e67731deaa776133060b5eda5d (patch)
treeb131858ce63a97a01dac0f1801105d5b0cd58ce5 /modules/aggregator/tests
parentdca92900fbf0b938ae735883ff9bebfc8342e58c (diff)
downloaddrupal-a6f7939484cb29e67731deaa776133060b5eda5d.tar.gz
drupal-a6f7939484cb29e67731deaa776133060b5eda5d.zip
- Patch #130344 by mustafau, David_Rothstein, csevb10: ATOM feed items link to the current page rather than back to the original source. Added Atom tests to the aggregator module.
Diffstat (limited to 'modules/aggregator/tests')
-rw-r--r--modules/aggregator/tests/aggregator_test_atom.xml20
-rw-r--r--modules/aggregator/tests/aggregator_test_rss091.xml10
2 files changed, 25 insertions, 5 deletions
diff --git a/modules/aggregator/tests/aggregator_test_atom.xml b/modules/aggregator/tests/aggregator_test_atom.xml
new file mode 100644
index 00000000000..357b2e5a156
--- /dev/null
+++ b/modules/aggregator/tests/aggregator_test_atom.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>Example Feed</title>
+ <link href="http://example.org/" />
+ <updated>2003-12-13T18:30:02Z</updated>
+ <author>
+ <name>John Doe</name>
+ </author>
+ <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+
+ <entry>
+ <title>Atom-Powered Robots Run Amok</title>
+ <link href="http://example.org/2003/12/13/atom03" />
+ <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+ <updated>2003-12-13T18:30:02Z</updated>
+ <summary>Some text.</summary>
+ </entry>
+
+</feed>
diff --git a/modules/aggregator/tests/aggregator_test_rss091.xml b/modules/aggregator/tests/aggregator_test_rss091.xml
index 9576f7c164f..1fd5320d3e9 100644
--- a/modules/aggregator/tests/aggregator_test_rss091.xml
+++ b/modules/aggregator/tests/aggregator_test_rss091.xml
@@ -17,14 +17,14 @@
<description>Example updates</description>
</image>
<item>
- <title>Example turns one</title>
+ <title>First example feed item title</title>
<link>http://example.com/example-turns-one</link>
- <description>Example turns one.</description>
+ <description>First example feed item description.</description>
</item>
<item>
- <title>Example turns two</title>
+ <title>Second example feed item title</title>
<link>http://example.com/example-turns-two</link>
- <description>Example turns two.</description>
+ <description>Second example feed item description.</description>
</item>
</channel>
-</rss> \ No newline at end of file
+</rss>