View | Details | Raw Unified | Return to bug 8995
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Biblio.t (-2 / +8 lines)
Lines 111-117 subtest 'items() tests' => sub { Link Here
111
111
112
subtest 'get_coins and get_openurl' => sub {
112
subtest 'get_coins and get_openurl' => sub {
113
113
114
    plan tests => 2;
114
    plan tests => 3;
115
115
116
    $schema->storage->txn_begin;
116
    $schema->storage->txn_begin;
117
117
Lines 134-138 subtest 'get_coins and get_openurl' => sub { Link Here
134
        'Koha::Biblio->get_openurl returned right URL'
134
        'Koha::Biblio->get_openurl returned right URL'
135
    );
135
    );
136
136
137
    t::lib::Mocks::mock_preference("OpenURLResolverURL", "https://koha.example.com/?client_id=ci1");
138
    is(
139
        $biblio->get_openurl,
140
        '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',
141
        'Koha::Biblio->get_openurl returned right URL'
142
    );
143
137
    $schema->storage->txn_rollback;
144
    $schema->storage->txn_rollback;
138
};
145
};
139
- 

Return to bug 8995