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

(-)a/t/db_dependent/Koha/UI/Form/Builder/Biblio.t (-3 / +20 lines)
Lines 1-8 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
# This file is part of Koha
4
#
5
# Koha is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3 of the License, or
8
# (at your option) any later version.
9
#
10
# Koha is distributed in the hope that it will be useful, but
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with Koha; if not, see <http://www.gnu.org/licenses>.
17
3
use Modern::Perl;
18
use Modern::Perl;
4
19
5
use Test::More;
20
use Test::More tests => 7;
6
21
7
use C4::ClassSource;
22
use C4::ClassSource;
8
23
Lines 11-16 use Koha::DateUtils qw( dt_from_string ); Link Here
11
use Koha::ItemTypes;
26
use Koha::ItemTypes;
12
use Koha::Libraries;
27
use Koha::Libraries;
13
28
29
my $schema = Koha::Database->new->schema;
30
$schema->storage->txn_begin;
31
14
use_ok('Koha::UI::Form::Builder::Biblio');
32
use_ok('Koha::UI::Form::Builder::Biblio');
15
33
16
subtest 'generate_subfield_form default value' => sub {
34
subtest 'generate_subfield_form default value' => sub {
Lines 179-182 subtest 'generate_subfield_form framework plugin' => sub { Link Here
179
    like($subfield->{marc_value}->{javascript}, qr,<script>.*</script>,s);
197
    like($subfield->{marc_value}->{javascript}, qr,<script>.*</script>,s);
180
};
198
};
181
199
182
done_testing();
200
$schema->storage->txn_rollback;
183
- 

Return to bug 32484