Bug 28123: Fix expected value in unit test

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
David Cook 2021-04-13 00:45:42 +00:00 committed by Jonathan Druart
parent 52f997fcfc
commit 559950cae6

View file

@ -323,7 +323,7 @@ subtest 'Testing download headers' => sub {
plan tests => 2;
my $test_pdf = Koha::UploadedFile->new({ filename => 'pdf.pdf', uploadcategorycode => 'B', filesize => 1000 });
my $test_not = Koha::UploadedFile->new({ filename => 'pdf.not', uploadcategorycode => 'B', filesize => 1000 });
my @pdf_expect = ( '-type'=>'application/pdf','Content-Disposition'=>'inline; filename=pdf.pdf' );
my @pdf_expect = ( '-type'=>'application/pdf','Content-Disposition'=>'inline; filename="pdf.pdf"' );
my @not_expect = ( '-type'=>'application/octet-stream','-attachment'=>'pdf.not' );
my @pdf_head = $test_pdf->httpheaders;
my @not_head = $test_not->httpheaders;