Lines 334-341
subtest 'Testing delete_temporary' => sub {
Link Here
|
334 |
|
334 |
|
335 |
subtest 'Testing download headers' => sub { |
335 |
subtest 'Testing download headers' => sub { |
336 |
plan tests => 2; |
336 |
plan tests => 2; |
337 |
my $test_pdf = Koha::UploadedFile->new({ filename => 'pdf.pdf', uploadcategorycode => 'B', filesize => 1000 }); |
337 |
my $test_pdf = Koha::UploadedFile->new({ filename => 'pdf.pdf', filesize => 1000 }); |
338 |
my $test_not = Koha::UploadedFile->new({ filename => 'pdf.not', uploadcategorycode => 'B', filesize => 1000 }); |
338 |
my $test_not = Koha::UploadedFile->new({ filename => 'pdf.not', filesize => 1000 }); |
339 |
my @pdf_expect = ( '-type'=>'application/pdf','Content-Disposition'=>'inline; filename="pdf.pdf"' ); |
339 |
my @pdf_expect = ( '-type'=>'application/pdf','Content-Disposition'=>'inline; filename="pdf.pdf"' ); |
340 |
my @not_expect = ( '-type'=>'application/octet-stream','-attachment'=>'pdf.not' ); |
340 |
my @not_expect = ( '-type'=>'application/octet-stream','-attachment'=>'pdf.not' ); |
341 |
my @pdf_head = $test_pdf->httpheaders; |
341 |
my @pdf_head = $test_pdf->httpheaders; |
342 |
- |
|
|