summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-19 15:38:36 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-19 15:38:36 +0200
commite0091e293b2ecba85ab08414f4790b64580c0c5e (patch)
tree9f12a659bdc28d4b4c6615405ace21f2ff6a5da3 /tests/unit
parent823f57eafea732962df626c102d08f1c7c9bcfb9 (diff)
added test for opmlexporter fix #58
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/controller/ExportControllerTest.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/unit/controller/ExportControllerTest.php b/tests/unit/controller/ExportControllerTest.php
index 74cce1d71..3248d2ef8 100644
--- a/tests/unit/controller/ExportControllerTest.php
+++ b/tests/unit/controller/ExportControllerTest.php
@@ -73,6 +73,15 @@ class ExportControllerTest extends ControllerTestUtility {
public function testOpmlExportNoFeeds(){
+ $opml =
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" .
+ "<opml version=\"2.0\">\n" .
+ " <head>\n" .
+ " <title>Subscriptions</title>\n" .
+ " </head>\n" .
+ " <body/>\n" .
+ "</opml>\n";
+
$this->api->expects($this->once())
->method('getUserId')
->will($this->returnValue($this->user));
@@ -87,12 +96,8 @@ class ExportControllerTest extends ControllerTestUtility {
$return = $this->controller->opml();
$this->assertTrue($return instanceof TextDownloadResponse);
-
- // TODO: check if its empty xml structure
+ $this->assertEquals($opml, $return->render());
}
- // TODO more tests for this
-
-
} \ No newline at end of file