X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FWallabag%2FCoreBundle%2FController%2FExportControllerTest.php;h=5ca886bd4d9e0a61ba29c12c76aac8ee80e948df;hb=794ac861cbd0a050915126a1fad6e1e5e5de2083;hp=9ecd8bc4e62ddd950aa831c0c5cf1ffaa70c3b16;hpb=920d88599a077a7624574345243caf45c6bc5820;p=github%2Fwallabag%2Fwallabag.git 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 $this->assertEquals('application/pdf', $headers->get('content-type')); $this->assertEquals('attachment; filename="All articles.pdf"', $headers->get('content-disposition')); $this->assertEquals('binary', $headers->get('content-transfer-encoding')); + + ob_start(); + $crawler = $client->request('GET', '/export/tag_entries.pdf?tag=foo'); + ob_end_clean(); + + $this->assertEquals(200, $client->getResponse()->getStatusCode()); + + $headers = $client->getResponse()->headers; + $this->assertEquals('application/pdf', $headers->get('content-type')); + $this->assertEquals('attachment; filename="Tag_entries articles.pdf"', $headers->get('content-disposition')); + $this->assertEquals('binary', $headers->get('content-transfer-encoding')); } public function testTxtExport()