Fix tests on pgsql

This commit is contained in:
Jeremy Benoist 2015-10-16 10:56:24 +02:00 committed by Nicolas Lœuillet
parent add597bad9
commit 33c36f6b48

View 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'));
}