diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php index 19d5f01d..3f749aae 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php | |||
@@ -71,7 +71,7 @@ class ExportControllerTest extends WallabagCoreTestCase | |||
71 | 71 | ||
72 | $headers = $client->getResponse()->headers; | 72 | $headers = $client->getResponse()->headers; |
73 | $this->assertEquals('application/x-mobipocket-ebook', $headers->get('content-type')); | 73 | $this->assertEquals('application/x-mobipocket-ebook', $headers->get('content-type')); |
74 | $this->assertEquals('attachment; filename="testtitleentry1.mobi"', $headers->get('content-disposition')); | 74 | $this->assertEquals('attachment; filename="'.preg_replace('/[^A-Za-z0-9\-]/', '', $content->getTitle()).'.mobi"', $headers->get('content-disposition')); |
75 | $this->assertEquals('binary', $headers->get('content-transfer-encoding')); | 75 | $this->assertEquals('binary', $headers->get('content-transfer-encoding')); |
76 | } | 76 | } |
77 | 77 | ||