diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php index 9ecd8bc4..5ca886bd 100644 --- a/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php | |||
@@ -117,6 +117,17 @@ class ExportControllerTest extends WallabagCoreTestCase | |||
117 | $this->assertEquals('application/pdf', $headers->get('content-type')); | 117 | $this->assertEquals('application/pdf', $headers->get('content-type')); |
118 | $this->assertEquals('attachment; filename="All articles.pdf"', $headers->get('content-disposition')); | 118 | $this->assertEquals('attachment; filename="All articles.pdf"', $headers->get('content-disposition')); |
119 | $this->assertEquals('binary', $headers->get('content-transfer-encoding')); | 119 | $this->assertEquals('binary', $headers->get('content-transfer-encoding')); |
120 | |||
121 | ob_start(); | ||
122 | $crawler = $client->request('GET', '/export/tag_entries.pdf?tag=foo'); | ||
123 | ob_end_clean(); | ||
124 | |||
125 | $this->assertEquals(200, $client->getResponse()->getStatusCode()); | ||
126 | |||
127 | $headers = $client->getResponse()->headers; | ||
128 | $this->assertEquals('application/pdf', $headers->get('content-type')); | ||
129 | $this->assertEquals('attachment; filename="Tag_entries articles.pdf"', $headers->get('content-disposition')); | ||
130 | $this->assertEquals('binary', $headers->get('content-transfer-encoding')); | ||
120 | } | 131 | } |
121 | 132 | ||
122 | public function testTxtExport() | 133 | public function testTxtExport() |