aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-29 14:03:55 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-29 14:03:55 +0200
commit794ac861cbd0a050915126a1fad6e1e5e5de2083 (patch)
tree48efee73bdd413da72644be779157a63fadd566c
parent920d88599a077a7624574345243caf45c6bc5820 (diff)
downloadwallabag-794ac861cbd0a050915126a1fad6e1e5e5de2083.tar.gz
wallabag-794ac861cbd0a050915126a1fad6e1e5e5de2083.tar.zst
wallabag-794ac861cbd0a050915126a1fad6e1e5e5de2083.zip
Added test for export by filtering with tag
-rw-r--r--tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php11
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()