diff options
Diffstat (limited to 'tests/unit/controller/ExportControllerTest.php')
-rw-r--r-- | tests/unit/controller/ExportControllerTest.php | 15 |
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 |