Lines 61-67
subtest 'metadata() tests' => sub {
Link Here
|
61 |
|
61 |
|
62 |
subtest 'get_coins and get_openurl' => sub { |
62 |
subtest 'get_coins and get_openurl' => sub { |
63 |
|
63 |
|
64 |
plan tests => 2; |
64 |
plan tests => 3; |
65 |
|
65 |
|
66 |
$schema->storage->txn_begin; |
66 |
$schema->storage->txn_begin; |
67 |
|
67 |
|
Lines 84-88
subtest 'get_coins and get_openurl' => sub {
Link Here
|
84 |
'Koha::Biblio->get_openurl returned right URL' |
84 |
'Koha::Biblio->get_openurl returned right URL' |
85 |
); |
85 |
); |
86 |
|
86 |
|
|
|
87 |
t::lib::Mocks::mock_preference("OpenURLResolverURL", "https://koha.example.com/?client_id=ci1"); |
88 |
is( |
89 |
$biblio->get_openurl, |
90 |
'https://koha.example.com/?client_id=ci1&ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Title%201&rft.au=Author%201', |
91 |
'Koha::Biblio->get_openurl returned right URL' |
92 |
); |
93 |
|
87 |
$schema->storage->txn_rollback; |
94 |
$schema->storage->txn_rollback; |
88 |
}; |
95 |
}; |
89 |
- |
|
|