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

(-)a/t/db_dependent/Koha/Biblios.t (-2 / +16 lines)
Lines 19-25 Link Here
19
19
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use Test::More tests => 5;
22
use Test::More tests => 6;
23
use Test::Exception;
23
use Test::Exception;
24
24
25
use C4::Items;
25
use C4::Items;
Lines 186-189 subtest 'can_be_transferred' => sub { Link Here
186
        .' is not possible.');
186
        .' is not possible.');
187
};
187
};
188
188
189
subtest 'custom_cover_image_url' => sub {
190
    plan tests => 1;
191
    t::lib::Mocks::mock_preference( 'CustomCoverImagesURL', 'https://my_url/%isbn%_%issn%.png' );
192
    my $isbn       = 'my_isbn';
193
    my $issn       = 'my_issn';
194
    my $biblioitem = $builder->build_object(
195
        {
196
            class => 'Koha::Biblioitems',
197
            value => { isbn => $isbn, issn => $issn }
198
        }
199
    );
200
    my $biblio = Koha::Biblios->find( $biblioitem->biblionumber );
201
    is( $biblio->custom_cover_image_url, "https://my_url/${isbn}_${issn}.png" );
202
};
203
189
$schema->storage->txn_rollback;
204
$schema->storage->txn_rollback;
190
- 

Return to bug 22445