]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix tests on pgsql
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 16 Oct 2015 08:56:24 +0000 (10:56 +0200)
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>
Mon, 9 Nov 2015 15:32:48 +0000 (16:32 +0100)
src/Wallabag/CoreBundle/Tests/Controller/ExportControllerTest.php

index 19d5f01d99b4f343df76e70ed7843db5ee4b034a..3f749aaeec08138db145c50f0ecf7d7811feafec 100644 (file)
@@ -71,7 +71,7 @@ class ExportControllerTest extends WallabagCoreTestCase
 
         $headers = $client->getResponse()->headers;
         $this->assertEquals('application/x-mobipocket-ebook', $headers->get('content-type'));
-        $this->assertEquals('attachment; filename="testtitleentry1.mobi"', $headers->get('content-disposition'));
+        $this->assertEquals('attachment; filename="'.preg_replace('/[^A-Za-z0-9\-]/', '', $content->getTitle()).'.mobi"', $headers->get('content-disposition'));
         $this->assertEquals('binary', $headers->get('content-transfer-encoding'));
     }