diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-29 14:27:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-29 14:27:46 +0200 |
commit | 67b270d9967a023538c7598bfb520dd1007dd2ab (patch) | |
tree | 48efee73bdd413da72644be779157a63fadd566c /tests/Wallabag/CoreBundle/Controller | |
parent | 267087d969e68e2f5abcb18f526120d835d9a686 (diff) | |
parent | 794ac861cbd0a050915126a1fad6e1e5e5de2083 (diff) | |
download | wallabag-67b270d9967a023538c7598bfb520dd1007dd2ab.tar.gz wallabag-67b270d9967a023538c7598bfb520dd1007dd2ab.tar.zst wallabag-67b270d9967a023538c7598bfb520dd1007dd2ab.zip |
Merge pull request #2506 from wallabag/fix-export-with-tags
Fixed entries export filtered with a tag
Diffstat (limited to 'tests/Wallabag/CoreBundle/Controller')
-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() |