Lines 37-43
use_ok('Koha::ILL::Request::Workflow::TypeDisclaimer');
Link Here
|
37 |
|
37 |
|
38 |
my $metadata = { |
38 |
my $metadata = { |
39 |
title => 'This is a title', |
39 |
title => 'This is a title', |
40 |
author => 'This is an author' |
40 |
author => 'This is an author', |
|
|
41 |
type => 'journal' |
41 |
}; |
42 |
}; |
42 |
|
43 |
|
43 |
# Because hashes can reorder themselves, we need to make sure ours is in a |
44 |
# Because hashes can reorder themselves, we need to make sure ours is in a |
Lines 54-60
isa_ok( $type_disclaimer, 'Koha::ILL::Request::Workflow::TypeDisclaimer' );
Link Here
|
54 |
|
55 |
|
55 |
is( |
56 |
is( |
56 |
$type_disclaimer->prep_metadata($sorted), |
57 |
$type_disclaimer->prep_metadata($sorted), |
57 |
'eyJhdXRob3IiOiJUaGlzIGlzIGFuIGF1dGhvciIsInRpdGxlIjoiVGhpcyBpcyBhIHRpdGxlIn0%3D%0A', |
58 |
'eyJhdXRob3IiOiJUaGlzIGlzIGFuIGF1dGhvciIsInRpdGxlIjoiVGhpcyBpcyBhIHRpdGxlIiwi%0AdHlwZSI6ImpvdXJuYWwifQ%3D%3D%0A', |
58 |
'prep_metadata works' |
59 |
'prep_metadata works' |
59 |
); |
60 |
); |
60 |
|
61 |
|
61 |
- |
|
|