Bugzilla – Attachment 71931 Details for
Bug 9701
Configure default indicators
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9701: (follow-up) Adjust tests
Bug-9701-follow-up-Adjust-tests.patch (text/plain), 1.50 KB, created by
Josef Moravec
on 2018-02-19 10:40:59 UTC
(
hide
)
Description:
Bug 9701: (follow-up) Adjust tests
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-02-19 10:40:59 UTC
Size:
1.50 KB
patch
obsolete
>From 0d4c31962c7990625add70ecc2fcc7436eb8ac8d Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Mon, 19 Feb 2018 10:36:04 +0000 >Subject: [PATCH] Bug 9701: (follow-up) Adjust tests > >Test plan: > >prove t/db_dependent/Biblio.t >should be green >--- > t/db_dependent/Biblio.t | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t >index 4c4e72d..0f516fa 100755 >--- a/t/db_dependent/Biblio.t >+++ b/t/db_dependent/Biblio.t >@@ -423,7 +423,7 @@ subtest 'NORMARC' => sub { > }; > > subtest 'IsMarcStructureInternal' => sub { >- plan tests => 6; >+ plan tests => 8; > my $tagslib = GetMarcStructure(); > my @internals; > for my $tag ( sort keys %$tagslib ) { >@@ -433,12 +433,14 @@ subtest 'IsMarcStructureInternal' => sub { > } > } > @internals = uniq @internals; >- is( scalar(@internals), 4, 'expect four internals'); >+ is( scalar(@internals), 6, 'expect 6 internals'); > is( grep( /^lib$/, @internals ), 1, 'check lib' ); > is( grep( /^tab$/, @internals ), 1, 'check tab' ); > is( grep( /^mandatory$/, @internals ), 1, 'check mandatory' ); > is( grep( /^repeatable$/, @internals ), 1, 'check repeatable' ); > is( grep( /^a$/, @internals ), 0, 'no subfield a' ); >+ is( grep( /^ind1_defaultvalue$/, @internals ), 1, 'check indicator 1 default value' ); >+ is( grep( /^ind2_defaultvalue$/, @internals ), 1, 'check indicator 2 default value' ); > }; > > subtest 'deletedbiblio_metadata' => sub { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9701
:
52054
|
52082
|
52161
|
52171
|
52172
|
52173
|
53403
|
53404
|
71929
|
71930
|
71931
|
72010
|
72011
|
72012
|
72986
|
73780
|
73781
|
73782
|
73783
|
73843
|
73844
|
73845